微信小程序开发中选项卡.在Android中选项卡一般用fragment,到了小程序这里瞬间懵逼了.
总算做出来了.分享出来看看.
先看效果:
再上代码:
1.index.wxml
<!--index.wxml-->
<view class=swiper-tab>
<view class=swiper-tab-list xss=removed data-current=0 bindtap=swichNav>哈哈</view>
<view class=swiper-tab-list {{currentTab==1 ? 'on' :