0
如何獲取setTimeout
中的$(this)
以獲取懸停函數的選擇器,在img
以下的情況下。jQuery,獲取外部函數選擇器
$("img").hover(function(){
window.setTimeout(function() {
$(this).addClass("hovering"); // add class .hovering to the exact img being hovered
}, 500);
});
@RepWhoringPeeHaa:停止用修辭問題抨擊我的不當術語! :) – Ryan 2012-04-28 15:46:54