jQuery 1.9.0版本之前判断checkbox是否选中使用的是 “ $("#ID").attr("checked")=="checked" ” 1.9.0版本之后应该要写成 $("#ID").prop("checked")==true