【问题标题】:Uncaught TypeError: Object [object Object] has no method 'jCarouselLite' Getting this error on implementing jcrousel [closed]未捕获的类型错误:对象[对象对象]没有方法'jCarouselLite'在实现jcrousel时出现此错误[关闭]
【发布时间】:2014-02-05 18:30:31
【问题描述】:

我尝试恢复 jcrousel 滑块的所有选项。导致找不到函数jcrousellite的错误。

我正在处理http://stepgndec.in

错误尚未解决。

【问题讨论】:

标签: javascript jquery jcarousellite


【解决方案1】:

您在该页面上加载了 2 个版本的 jQuery。 jCarouselLite 插件附加到加载的第一个 jQuery 实例。目前,您正在获得对通过 .noConflict() 调用加载的第二个 jQuery 的引用...

var $jx = jQuery.noConflict(); 
$jx(function() {
    $jx(".mygallery").jCarouselLite({
        btnNext: ".next",

把它改成使用原来的 jQuery 对象,你应该会很好......

var $jx = jQuery.noConflict(); 
$(function() {
    $(".mygallery").jCarouselLite({
        btnNext: ".next",

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-05-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-05
    相关资源
    最近更新 更多