jQuery Uncaught TypeError:Object [对象Object]没有方法滑块 [英] jQuery Uncaught TypeError: Object[object Object] has no method slider

查看:88
本文介绍了jQuery Uncaught TypeError:Object [对象Object]没有方法滑块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是页面网址 http://meracd.com/design/disc_designer. php?disc = cd

我已经将jqueryUI用于滑块.但这不起作用.我已经在custom.js脚本之前加载了jquery和jquery UI.

I've used jqueryUI for the slider. But it isn't working. I've loaded jquery and jquery UI before the custom.js script.

推荐答案

您的页面上有多个jQuery实例.

You have multiple instances of jQuery on your page.

您的jQuery UI Slider插件正在附加到window.jQuery(版本1.6.2),但是您的custom.js代码正试图针对window.$(版本1.6.4)运行.

Your jQuery UI Slider Plugin is attaching to window.jQuery (which is version 1.6.2), but your custom.js code is trying to run against window.$ (which is version 1.6.4).

您需要:

  • 摆脱其中之一(不需要两者都拥有)
  • 别名为custom.js中使用的jQuery
  • 使用 noConflict() 来确定哪个jQuery可以访问$变量.
  • Get rid of one of them (there's no need to have both)
  • Alias the jQuery used in custom.js
  • Use noConflict() to resolve which jQuery gets access to the $ variable.

这篇关于jQuery Uncaught TypeError:Object [对象Object]没有方法滑块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆