bindtap事件传参

<!-- 传参 -->
<
view bindtap='operation' data-item='{{item}}'>  
  // 获取
operation: function (e) { var item = e.currentTarget.dataset.item; console.log(item); },

 

posted @ 2019-07-04 13:59  decrypt  阅读(1812)  评论(0编辑  收藏  举报