制作一个 jquery 1.8 脚本以使用 jquery 3.x

Make a jquery 1.8 script to use jquery 3.x

我有一个使用 jquery 1.8.3 构建的无限滚动脚本,但它在使用 jquery 3.1.1 的网站上不起作用,我需要这个脚本来启动使用 3.1.1,因为我的网站 bootstrap 模式使用 3.1.1,我不能删除 3.1.1。 这是应用

    $(document).ready(function(){
    $('#content').infinitescroll({
        navSelector: "#next:last",
        nextSelector: "#next:last",
        itemSelector: "#content",
        debug: false,
        dataType: 'html',
    maxPage: 6,
        path: function(index) {
            return "index" + index + ".html";
        }
        // appendCallback   : false, // USE FOR PREPENDING
    }, function(newElements, data, url){
      // used for prepending data
        // $(newElements).css('background-color','#ffef00');
        // $(this).prepend(newElements);
    });
});

js class 位于此处 http://www.hongkiat.com/blog/infinite-page-scroll/

Jquery no-conflict() 已经解决了这个问题