layui checkbox默认选中,获取选中值,清空所有选中项的例子 废话不多说,直接上代码吧:vararr=res.data;varmyCheckbox=$("input[name='MenuArr']");myCheckbox.prop('checked 选中项