小程序tarbar自定義組件

第一步:建立一個文件夾裏面放置組件(tabbar爲組件) 第二步編輯: wxml: <view class='allfooter'> <view class='footer-one'> <view class='foot-img' bindtap='change1'> <image src='{{tarbar.shouye.active?"照片1":"照片2"}}'></image> <text>
相關文章
相關標籤/搜索