TypeError: jQuery("#slider-full").revolution 不是函数 [英] TypeError: jQuery("#slider-full").revolution is not a function

查看:40
本文介绍了TypeError: jQuery("#slider-full").revolution 不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在控制台中安装带有滑块的 worpdress 和模板时,出现此错误:TypeError: jQuery("#slider-full").revolution is not a function.(在 'jQuery("#slider-full").revolution', 'jQuery("#slider-full").revolution' 中未定义) 我现在该怎么办?

Hi when I install worpdress and template with slider in console I got this error: TypeError: jQuery("#slider-full").revolution is not a function. (In 'jQuery("#slider-full").revolution', 'jQuery("#slider-full").revolution' is undefined) What should I do now?

jQuery("#slider-full").revolution({
    sliderType:"standard",
    sliderLayout:"fullscreen",
    dottedOverlay:"none",
    delay:9000,
    navigation: {
        keyboardNavigation:"off",
        keyboard_direction: "horizontal",
        mouseScrollNavigation:"off",
        onHoverStop:"off",
        touch:{
            touchenabled:"on",
            swipe_threshold: 75,
            swipe_min_touches: 50,
            swipe_direction: "horizontal",
            drag_block_vertical: false
        }
        ,
        arrows: {
            style:"",
            enable:true,
            hide_onmobile:false,
            hide_onleave:true,
            hide_delay:200,
            hide_delay_mobile:1200,
            tmp:'',
            left: {
                h_align:"left",
                v_align:"center",
                h_offset:20,
                v_offset:0
            },
            right: {
                h_align:"right",
                v_align:"center",
                h_offset:20,
                v_offset:0
            }
        }
        ,
        bullets: {
            enable:true,
            hide_onmobile:true,
            hide_under:769,
            style:"",
            hide_onleave:false,
            direction:"horizontal",
            h_align:"right",
            v_align:"top",
            h_offset:60,
            v_offset:40,
            space:5,
            tmp:'<span class="tp-bullet-image"></span><span class="tp-bullet-title"></span>'
        }
    },
    responsiveLevels:[1240,1024,778,480],
    visibilityLevels:[1240,1024,778,480],
    gridwidth:[1240,1024,778,480],
    gridheight:[868,768,960,720],
    lazyType:"none",
    parallax: {
        type:"scroll",
        origo:"slidercenter",
        speed:400,
        levels:[5,10,15,20,25,30,35,40,45,46,47,48,49,50,51,55],
        type:"scroll",
    },
    shadow:0,
    spinner:"spinner2",
    stopLoop:"off",
    stopAfterLoops:-1,
    stopAtSlide:-1,
    shuffle:"off",
    autoHeight:"off",
    fullScreenAutoWidth:"off",
    fullScreenAlignForce:"off",
    fullScreenOffsetContainer: "",
    fullScreenOffset: "",
    disableProgressBar:"on",
    hideThumbsOnMobile:"off",
    hideSliderAtLimit:0,
    hideCaptionAtLimit:0,
    hideAllCaptionAtLilmit:0,
    debugMode:false,
    fallbacks: {
        simplifyAll:"off",
        nextSlideOnWindowFocus:"off",
        disableFocusListener:false,
    }
});

推荐答案

这意味着您的 RevolutionSlider 没有正确包含在页面中,或者它包含在调用它的位置之后.

This means that your RevolutionSlider is not properly included into the page or it is included after the point at which it is called.

如果此插件已安装并成功打开,您必须在管理面板中检查.

You must check in admin panel if this plugin is installed and turned on successfully.

如果是,您可以尝试在控制台中运行 jQuery("#slider-full").revolution({}); 以检查滑块是否未包含在代码中;

If yes, you can try to run jQuery("#slider-full").revolution({}); in your console to check if slider is not included later in the code;

这篇关于TypeError: jQuery("#slider-full").revolution 不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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