Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 未捕获的TypeError:对象函数(e,t){return new v.fn.init(e,t,n)}没有方法“format”_Javascript_Jquery Ui_Grid_Gallery - Fatal编程技术网

Javascript 未捕获的TypeError:对象函数(e,t){return new v.fn.init(e,t,n)}没有方法“format”

Javascript 未捕获的TypeError:对象函数(e,t){return new v.fn.init(e,t,n)}没有方法“format”,javascript,jquery-ui,grid,gallery,Javascript,Jquery Ui,Grid,Gallery,tablet和mobile responsive中的导航菜单栏消失,但在其他页面中显示导航菜单栏。导航菜单下拉菜单“仅厨房”页面将消失。这就是我发现的错误: 未捕获类型错误:对象函数e,t{返回新的v.fn.inite,t,n}没有方法“format”匿名函数 o p、 弗里斯 e、 准备好了吗 c、 addEventListener.B // validate Contact Form var validator = $("#contactForm").validate({ rules

tablet和mobile responsive中的导航菜单栏消失,但在其他页面中显示导航菜单栏。导航菜单下拉菜单“仅厨房”页面将消失。这就是我发现的错误:

未捕获类型错误:对象函数e,t{返回新的v.fn.inite,t,n}没有方法“format”匿名函数 o p、 弗里斯 e、 准备好了吗 c、 addEventListener.B

// validate Contact Form
var validator = $("#contactForm").validate({
    rules: {
        contactname: {
            required: true,
            minlength: 2
        },
        email: {
            required: true,
            email: true
        },
        message: {
            required: true,
            minlength: 10
        }
    },
    messages: {
        contactname: {
            required: "Please enter your name",
            minlength: jQuery.format("Your name needs to be at least {0} characters")
        },
        email: {
            required: "Please enter a valid email address",
            minlength: "Please enter a valid email address"
        },
        message: {
            required: "You need to enter a message!",
            minlength: jQuery.format("Enter at least {0} characters")
        }
    },
    // set this class to error-labels to indicate valid fields
    success: function(label) {
        label.addClass("checked");
    }
});
// Drop Down Menu
$('ul#main-menu').superfish({ 
    delay:       600,
    animation:   {opacity:'show',height:'show'},
    speed:       'fast',
    autoArrows:  true,
    dropShadows: false
});

// Slides Loader
$(".slider").removeClass("slide-loader");
$(".slider-single").removeClass("slide-loader-single");

// Mobile Menu

// Create the dropdown base
$("<select />").appendTo("#main-menu-wrapper");

// Create default option "Go to..."
$("<option />", {
    "selected": "selected",
    "value"   : "",
    "text"    : "Go to..."
}).appendTo("#main-menu-wrapper select");

// Populate dropdown with menu items
$("#main-menu a").each(function() {
    var el = $(this);
    $("<option />", {
        "value"   : el.attr("href"),
        "text"    : el.text()
    }).appendTo("#main-menu-wrapper select");
});

// To make dropdown actually work
$("#main-menu-wrapper select").change(function() {
    window.location = $(this).find("option:selected").val();
});

您缺少了一些提供jQuery.format.Hi Blender的插件,我已经将jQuery.format中的插件修改为$.format。