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

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