The superslide plug-in reported an error after the jquery version was upgraded to 3.3.1

has been using ide2.com/" rel=" nofollow noreferrer "> superslide plug-in version v2.1.1. Recently, after upgrading the jquery version to 3.3.1, the error report is as follows:

where the index-data.js:21 code is as follows:

$(".slideBox").slide({
            mainCell: ".bd ul",
            effect: "leftLoop",
            autoPlay: true,
            trigger: "mouseover",
            easing: "swing",
            delayTime: 1000,
            mouseOverStop: true,
            pnLoop: true
        });

how to solve this problem?


the new version of jq has removed the size method. You can replace it with length, or you can extend a size method

.
$.fn.size=function(){
    return $(this).length;

}

this is pseudo code, you try

Menu