jQuery中this与$(this)的区别

this是一个Html 元素this $(this)是一个JQuery对象spa 二者拥有的属性是不一样的。对象 下面举例说明:input 两段程序的效果是相同的,但分别使用了$(this)和this。 io $("input[name='out[]']").each(function() {                 if($(this).attr("checked")==true)   
相关文章
相关标签/搜索