我正在尝试将 fadeOut()
放入函数内,以便我可以在脚本中的各个位置使用它。我在让它工作时遇到了问题,尽管这应该有效。这是我从 Firebug 得到的错误:
类型错误:$(...).html(...).parent(...).fadeIn(...).fadeMe 不是函数
success: function(x) {
if(x["s"] == false) {
$('.errors').html(x['m']).parent().fadeIn().fadeMe(); // i'm stuck here
} else if(x["s"] == true) {
// other code
}
},
function fadeMe(){
setTimeout(function() { $(".errors").fadeOut(); }, 5000)
};
最佳答案
关于javascript - jQuery fadeMe 不是一个函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26323875/