<button open-type=“getUserInfo”></button>
在代码里面试过了,没什么用。
<
button
open-type
=
'getUserInfo'
bindgetuserinfo
"bindgetuserinfo"
data-id
"{{item.id}}"
>
js页面
bindgetuserinfo:function(e){
console.log(e, '用户信息')
}
<button open-type=“getuserInfo”></button>