我用jgrowl顯示某些內容,我必須得到這個奇怪的錯誤今天
$(this).data("jGrowl") is undefined in jquery.jgrowl_compressed.js file in line 59
指向我的followong線,
$(this).data("jGrowl").created=new Date();
而在我的項目js文件中,我有以下代碼
if (data)
{
$('.jGrowl-notification:contains("' + oldtext + '")').remove();
$.jGrowl.defaults.poll = 1;
$.jGrowl(data, { animateOpen: { height: 'show'}, glue : 'after' , position : 'bottom-right'});
oldtext=data;
clean();
}
function clean()
{
$('.jGrowl-notification:contains("' + oldtext + '")').remove();
}
我得到的錯誤,當我嘗試打開菜單,打開前,我再次打開它..
任何想法可能是錯誤的。
謝謝。
編輯︰我已添加更多的代碼,以獲得清晰度.. – Hulk 2010-02-20 21:59:06