我用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