作者knives ()
看板Ajax
標題[問題] jquery live搭配plugin怎麼用
時間Tue Dec 20 15:09:14 2011
我有個功能需要用ajax 輸出新的圖片
$.ajax({
success:function(html){
//
$('#target').html(html);
}
});
在一開始我有用到$("img").lazyload();
那請問一下,我要怎麼讓後來產生的物件,使用lazyload
謝謝回答
--
◢██ ◣
◢ █
□︵□◥
◥
o﹦◤◤ ㄤ ㄤ ㄤ 洨叮噹幫我實現~所有的~願望~~
●
㊣ ◣
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.126.209.219
1F:→ mrbigmouth:後來產生的東西就肯定已經延後載入啦 你是要lazeload啥 12/20 15:45
2F:→ mrbigmouth:如果你只是想要lazeload的動畫效果... 12/20 15:46
3F:→ mrbigmouth:$('#target').html(html).find('img').hide().fadeOut( 12/20 15:46
4F:→ mrbigmouth:'fast').....這種方式自己做就好了 12/20 15:47