1、js

companyCellClick:function(cid){
console.log(cid.currentTarget.dataset.cid);
}
 
2、xml
<block wx:for="{{list}}" wx:key="cid">
<van-cell title="{{item.cname}}" is-link/>
</block>
 
用法:
data-参数 = '值'
 
这样就可以了。
 

相关文章:

  • 2021-09-23
  • 2022-01-07
  • 2022-12-23
  • 2022-02-07
  • 2021-10-29
  • 2021-11-18
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-12-01
  • 2021-11-21
  • 2021-09-20
相关资源
相似解决方案