FWQ
微信小程序开发之滑块视图容器
微信小程序 开发之滑块视图容器详解 实现效果图: 实现起来特别简单,看看代码是怎么写的呢: <swiper> <block> <swiper-item> <image></image> </swiper-item> </block></swiper> 登录后复制 这就是布局了,看一下js里面代码: Page({ data: { imgUrls: [ 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg', 'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg', 'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg'], indcatorDots: true, autoPlay: true, interval: 5000, duration: 500 }, 登录后复制 ,swiper有以下一些常用属性: 标记的两个属性暂时不管。 注意:其中只可放置组件,否则会导致未定义的行为。 swiper-item…