jquery之$().hover(func1,funct2)使用方法_jquery
來源:懂視網
責編:小采
時間:2020-11-27 21:03:24
jquery之$().hover(func1,funct2)使用方法_jquery
jquery之$().hover(func1,funct2)使用方法_jquery:因為hover不是標準的事件,因此無法直接使用live進行處理,故使用以下方法代替,效果一樣。 代碼如下: $(table tr).live({ mouseenter: function() { //todo }, mouseleave: function() { //todo } }); 在循環輸出的中,只
導讀jquery之$().hover(func1,funct2)使用方法_jquery:因為hover不是標準的事件,因此無法直接使用live進行處理,故使用以下方法代替,效果一樣。 代碼如下: $(table tr).live({ mouseenter: function() { //todo }, mouseleave: function() { //todo } }); 在循環輸出的中,只

因為hover不是標準的事件,因此無法直接使用live進行處理,故使用以下方法代替,效果一樣。
代碼如下:
$("table tr").live({
mouseenter:
function()
{
//todo
},
mouseleave:
function()
{
//todo
}
});
在循環輸出的中,只針對某個下的內容進行處理的時:可以使用$(this).find()來實現:
代碼如下:
water">
action" style="display:none">
{lang user/repick}
{lang user/reply}
water">
action" style="display:none">
{lang user/repick}
{lang user/reply}
water">
action" style="display:none">
{lang user/repick}
{lang user/reply}
water">
action" style="display:none">
{lang user/repick}
{lang user/reply}
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
jquery之$().hover(func1,funct2)使用方法_jquery
jquery之$().hover(func1,funct2)使用方法_jquery:因為hover不是標準的事件,因此無法直接使用live進行處理,故使用以下方法代替,效果一樣。 代碼如下: $(table tr).live({ mouseenter: function() { //todo }, mouseleave: function() { //todo } }); 在循環輸出的中,只