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

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

问题描述

这是页面 url 来解决哪个jQuery可以访问$ 变量.

Here is the page url http://meracd.com/design/disc_designer.php?disc=cd

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

解决方案

You have multiple instances of jQuery on your page.

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).

You need to either:

  • 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 Object] 没有方法滑块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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