layui常見問題記錄

1.用js選中checkbox,沒有效果jquery

  解決方式:加入 form.render(); 從新渲染表單dom

$(this).prop('checked', true); //在新版本的jquery中,若是是修改dom的現有屬性用prop,若是是自定義屬性,用attr
form.render();this

相關文章
相關標籤/搜索