1.弹窗 插件 网址:http://layer.layui.com/
function click(){
//自定页
layer.open({
type: 1,
skin: 'layui-layer-demo', //样式类名
closeBtn: 0, //不显示关闭按钮
anim: 2,
shadeClose: true, //开启遮罩关闭
content: '内容'
});
}
复制代码
2.swiper插件
//banner轮播图
var mySwiper = new Swiper('#swiper1', {
direction: 'horizontal',
autoplay: 2000,
loop: true,
autoplayDisableOnInteraction: false
})
var mySwiper1 = new Swiper('#swiper2', {
direction: 'horizontal',
autoplay: 1500,
loop: true,
slidesPerView: 3,
spaceBetween: 10,
autoplayDisableOnInteraction: false
})复制代码