欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

插件

程序员文章站 2022-06-01 12:37:11
...

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
    })复制代码

转载于:https://juejin.im/post/5acae82651882548fe4a6b09