【发布时间】:2010-02-20 21:48:46
【问题描述】:
全部,
我使用jgrowl显示某些内容,今天我遇到了这个奇怪的错误
$(this).data("jGrowl") is undefined in jquery.jgrowl_compressed.js file in line 59
这将我指向后续行,
$(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();
}
当我尝试打开菜单时出现错误,在它打开之前我再次打开它..
知道可能出了什么问题。
谢谢。
【问题讨论】:
-
编辑:我添加了更多代码来获得清晰度..
标签: jquery jquery-ui jquery-plugins jquery-selectors