this代表目前的DOM對象
$(this)代表我們用jQuery所選取的jQuery對象
$(“div”).each(function(){
this.xxx
$(this).html()
});
this指的是html元素的”div”
$(this)則是指jQuery的物件
this代表目前的DOM對象
$(this)代表我們用jQuery所選取的jQuery對象
$(“div”).each(function(){
this.xxx
$(this).html()
});
this指的是html元素的”div”
$(this)則是指jQuery的物件