$(function() { // 头部 $(window).scroll(function() { if ($(window).scrollTop() > 180) { $(".m-top").stop().addClass("on") } else { $(".m-top").stop().removeClass("on") } }) $(".banner").slick({ autoplay: false, dots: true }) $(".news-l").slick({ autoplay: false, dots: true }) $(".special>ul").slick({ autoplay: false, dots: true, slidesToShow: 4, slidesToScroll: 1, responsive: [{ breakpoint: 1025, settings: { slidesToShow: 3, slidesToScroll: 1 } }, { breakpoint: 769, settings: { slidesToShow: 2, slidesToScroll: 1 } }, { breakpoint: 415, settings: { slidesToShow: 1, slidesToScroll: 1 } } ] }) })