mta*_*tay 8 firefox jquery-ui widget
我在一个页面上有一些来自Jquery UI的多选框,它们在Chrome和Safari中运行得非常好,但由于某种原因不能在Firefox中运行...当我在Firefox中加载错误控制台时,我看到:
Error: $.widget is not a function
Source File: http://localhost:3000/javascripts/jquery.multiselect.js?1302660373
Line: 563
Run Code Online (Sandbox Code Playgroud)
有什么想法吗?
编辑:行本身在open函数中,它表示"//对初始化后的选项更改做出反应"
// open the menu
open: function(e){
var self = this,
button = this.button,
menu = this.menu,
speed = this.speed,
o = this.options;
widget: function(){
return this.menu;
},
// react to option changes after initialization
_setOption: function( key, value ){
var menu = this.menu;
switch(key){
case 'header':
menu.find('div.ui-multiselect-header')[ value ? 'show' : 'hide' ]();
Run Code Online (Sandbox Code Playgroud)
and*_*dyb 15
我假设您正在使用jQuery Multiselect插件 ...这取决于jQuery UI.
听起来你没有包含足够的jQuery UI库或者没有包含它们.如果您构建自定义下载,则需要包含jQuery UI的核心部分(包括Widget).或者只是下载整个jQuery UI并改为包含它.
| 归档时间: |
|
| 查看次数: |
20991 次 |
| 最近记录: |