1.通过 $("input type:checkbox").each(function(i){
toolId = $(this).attr("id"); //此处使用了全部变量,在IE中会报错
});
当修为 var toolId = $(this).attr("id"); bug修复。 //局部变量