WXML页面可以往函数名加() 带参吗?
例如:
<view wx:for="{{myLove}}">
<button bindtap=‘clickbtn({{index}})’ class=‘asdf’>{{item}}</button>
</view>
js页面:
clickbtn:function(res){
console.log(res)
}
例如:
<view wx:for="{{myLove}}">
<button bindtap=‘clickbtn({{index}})’ class=‘asdf’>{{item}}</button>
</view>
js页面:
clickbtn:function(res){
console.log(res)
}