【问题标题】:delay is not a function延迟不是函数
【发布时间】:2011-06-11 06:28:20
【问题描述】:

我不断收到这样的错误:

$("div.valid_box").html(data.message).css("margin-left", "145px").css("width", "520px").show().delay is not a function
[Break On This Error] $(...elay(10000).hide("slow", function() { 

在我的代码中:

success: function(data) {
    if (data.errorsExist) {
        $('div.valid_box').hide();
        $("div.error_box").html(data.message).css("margin-left", "145px").css("width", "520px").show(); 
    } else {
        $('div.error_box').hide();
        $("div.valid_box").html(data.message).css("margin-left", "145px").css("width", "520px").show().delay(10000).hide("slow", function() {
            window.location.href = "index.php";
        });    
    } 
}

【问题讨论】:

    标签: javascript jquery method-chaining


    【解决方案1】:

    您可能在某个地方加载了旧版本的 jQuery,从而覆盖了新版本。搜索这个错误并删除加载旧的jQuery。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-02-14
      • 1970-01-01
      • 1970-01-01
      • 2011-03-29
      • 2017-10-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多