RickyDan
V2EX  ›  问与答

移动端多图滑动切换的插件

  •  
  •   RickyDan · Apr 21, 2016 · 3791 views
    This topic created in 3673 days ago, the information mentioned may be changed or developed.

    哪位大神有用过比较好用的不依赖于 jq 的多图滑动插件,微信端端,因为项目没有引入 jq, 所以找了一大堆都不符合要求。麻烦用过的童鞋分享一下哈

    10 replies    2018-03-12 11:16:45 +08:00
    arfaWong
        1
    arfaWong  
       Apr 21, 2016
    swiper ?
    RickyDan
        2
    RickyDan  
    OP
       Apr 21, 2016
    @arfaWong swiper 是依赖 jq 的
    iTakeo
        3
    iTakeo  
       Apr 21, 2016 via iPhone
    不依赖的,经常用
    arfaWong
        4
    arfaWong  
       Apr 21, 2016
    airyland
        5
    airyland  
       Apr 21, 2016
    用 vue 的话可以用这个 https://vux.li/#!/component/swiper 也有非 vue 依赖的,看页面上的源码链接。
    runcelim
        6
    runcelim  
       Apr 21, 2016 via iPhone
    swiper 记得有不依赖 jQuery 的版本
    Biwood
        7
    Biwood  
       Apr 21, 2016
    不知道你要自动切换的还是手动的,我自己写了个手动切换的,支持移动端

    地址: http://oodzchen.com/presentr.js
    源码: https://github.com/oodzchen/presentr.js
    chemzqm
        8
    chemzqm  
       Apr 21, 2016
    我们产品有很多需要滑动的地方,所以我写了一个

    https://github.com/chemzqm/hscroll

    代码简单,接口易用,同时支持桌面移动端滑动( IE 的 touch 都支持),另外还可做为 tab 插件以及固定元素边界的滑动插件。

    我仓库还有很多移动端的组件,都是基于一些 component 基础组件,有需要可以试试。
    RickyDan
        9
    RickyDan  
    OP
       Apr 22, 2016
    谢谢各位大神多热心回复,已经找好了
    ab
        10
    ab  
       Mar 12, 2018 via iPhone
    @RickyDan #9 后来你用了哪个?推荐下?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3511 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 11:00 · PVG 19:00 · LAX 04:00 · JFK 07:00
    ♥ Do have faith in what you're doing.