事件传参
通过自定义属性给事件函数传参
index.wxml
<view bindtap="add2" data-value="{{'hello'}}">点击我 自定义属性传参数</view>
index.js
add2:function(e){
console.log(e.value)
},
事件传参
通过自定义属性给事件函数传参
index.wxml
<view bindtap="add2" data-value="{{'hello'}}">点击我 自定义属性传参数</view>
index.js
add2:function(e){
console.log(e.value)
},