网上也查过有解决方案,就是将$("...").attr("checked", true)改为$("...").prop("checked", true),问题解决。
JQuery1.6以上版本用prop
JQuery1.6及一下版本用attr