实战经验

1.通过 $("input type:checkbox").each(function(i){

               toolId = $(this).attr("id");  //此处使用了全部变量,在IE中会报错

         });

  当修为 var toolId = $(this).attr("id");  bug修复。  //局部变量

 

posted @ 2014-03-06 23:30  未来动力  阅读(94)  评论(0编辑  收藏  举报