0
我正在研究一个名为“popup”的插件($(".messageBox").popup()
)。jQuery插件无法正常工作
这里是我的代码部分:
$(this).fadeIn(settings.fadeDuration);
console.log($(this).attr("class"));
console.log(settings.timeOut);
setTimeout(function(){
console.log($(this).attr("class"));
$(this).fadeOut(settings.fadeDuration);
}, settings.timeOut);
那是在popup.min.js
的代码,现在下面是index.html
代码:
$(function(){
$(".messageBox").popup();
});
我的弹出窗口,并正确淡入,但它不会在1000ms
之后淡出......我该怎么办?我打开了控制台,但没有显示错误。
什么是'setting.timeOut'写入控制台时? – War10ck