微信小程序,點擊view獲取view對應的內容

好比,在test.wxml文件中:spa <view data-text="{{item.text}}" class="static_cell" bindtap="{{item.func}}">{{item.text}}</view> xml 點擊這個view以後就會執行bindtap方法,這時在test.js文件中的bindtap方法中,get bindtapFunc: function (e)
相關文章
相關標籤/搜索