将带有jQuery-1.9.1.min的旋转木马添加到Magento

将带有jQuery-1.9.1.min的旋转木马添加到Magento,jquery,magento,carousel,Jquery,Magento,Carousel,您好,我正在尝试将sky touch jQuery旋转木马添加到Magento,但每当我添加jQuery-1.9.1.min.js时,调试控制台中都会出现许多js冲突。(未捕获类型错误)我确信这是两个jQuery库之间的冲突,但我如何解决这一问题 我曾尝试在头部的调用滑块代码中添加jQuery no conflict,但仍然不起作用 任何帮助都将不胜感激。谢谢 以下是错误: Uncaught TypeError: Cannot set property 'touchstart' of undef

您好,我正在尝试将sky touch jQuery旋转木马添加到Magento,但每当我添加jQuery-1.9.1.min.js时,调试控制台中都会出现许多js冲突。(未捕获类型错误)我确信这是两个jQuery库之间的冲突,但我如何解决这一问题

我曾尝试在头部的调用滑块代码中添加jQuery no conflict,但仍然不起作用

任何帮助都将不胜感激。谢谢

以下是错误:

Uncaught TypeError: Cannot set property 'touchstart' of undefined jquery.mobile.customized.min.js:10
Uncaught TypeError: Object [object Object] has no method 'attachEvent' prototype.js:5644
Uncaught TypeError: Object [object Object] has no method 'superfish' superfish.js:123
Uncaught TypeError: Cannot call method 'carousel' of null 
转到自定义主题(应用程序>设计>前端>默认设置>自定义主题>布局),布局文件夹打开page.xml文件

发现


将include js代码放在prototype.js上面,我添加了自定义jquery文件,它对我很有用

<action method="addJs"><script>customtheme/jquery.1.8.2.mins.js</script></action>
<action method="addJs"><script>customtheme/jquery.bxslider.js</script></action>
<action method="addJs"><script>customtheme/highslide.js</script></action>
customtheme/jquery.1.8.2.mins.js
customtheme/jquery.bxslider.js
customtheme/highslide.js
希望这对你有用


干杯

您好,谢谢您的回复,但仍然存在冲突,但是JS错误少了一些。请在您的版本jQuery文件的末尾添加“jQuery.noConflict();”,我知道这不是一种正确的方法,但它解决了我的错误,如果您能解决您的错误,请尝试!好的,我试过了。。但问题依然存在。这似乎与
<action method="addJs"><script>customtheme/jquery.1.8.2.mins.js</script></action>
<action method="addJs"><script>customtheme/jquery.bxslider.js</script></action>
<action method="addJs"><script>customtheme/highslide.js</script></action>