我的网站有这个问题:80% 的时间网站加载完美,没有任何问题。有时它会在下图中出现问题:这是我在索引中调用的 javascript 文件: <script type='text/javascript' src="js/jquery3.1.1.js"></script> <script type='text/javascript' src="js/lightgallery.min.js"></script> <script type='text/javascript' src='js/slick.min.js'></script> <script type='text/javascript' src='js/lazy.min.js'></script> <script type='text/javascript' src='js/main.min.js'></script> <script type='text/javascript' src="js/picker.min.js"></script> <script type="text/javascript" src="https://nibirumail.com/docs/scripts/nibirumail.cookie.min.js"></script> <script type="text/javascript" src="https://web4.deskline.net/accommodationtrentino/it/qfind/script/TRN/a2befeb0-66ed-4f20-bf1a-520a5959f8cd/x?pageType=4&containerId=QF1&selAdultsSearchLine1=2&showText=true&showLink=true&lkCS=DEFAULT&width=300"></script> <script type="text/javascript" src="https://web4.deskline.net/accommodationtrentino/it/qfind/script/TRN/a2befeb0-66ed-4f20-bf1a-520a5959f8cd/x?pageType=4&containerId=QF2&selAdultsSearchLine1=2&showText=true&showLink=true&lkCS=DEFAULT&width=300"></script> <script type='text/javascript' src="https://cdnmks.suggesto.eu/vtn-hook/lib/sweWidget2.js?t=201704141221" ></script> 在 main.min.js 中调用了 lazy 和 slick 对象:$(function() { $('.lazy').lazy(); });$(document).ready(function(){ $('.slider-nav').slick({ lazyLoad: 'ondemand', autoplay: true, autoplaySpeed: 5000, dots: true, infinite: false, speed: 300, slidesToShow: 4, slidesToScroll: 1, responsive: [ { breakpoint: 1200, settings: { lazyLoad: 'ondemand', slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 900, settings: { slidesToShow: 2, slidesToScroll: 1 } } // You can unslick at a given breakpoint now by adding: // settings: "unslick" // instead of a settings object ]}); });在调用其他脚本之前,似乎没有正确加载 JQuery。有人能帮忙吗?
添加回答
举报
0/150
提交
取消