JS遍历所有checkbox是否选中
var all_checked = true;$(":checkbox").each(function(){ if(this.checked == false){ all_checked = false; break; }});注意:用break,想跳出这个循环。结果报错SyntaxError: unlabeled break must be