tabs选项卡 网上代码很多,基本上是标题选项卡使用<view>,如果多一点就是用<scroll-view>。因为要实现滑动切换,所以下面显示内容使用<swiper>。 下面的js就来判断点击的或者滑动的当前序号值。 Page({ data: { currentTab:0 }, swiperTab:function(e) { var that = this; that.setData({ currentTab: e