HTML:

<span @click='zan(pl.id)' :data-id='pl.id'></span>

JS:

zan(e){
    var target=event.target;
    var dataid=e;//(pl.id的值);
    $(target)//当前点击的dom
}

 

相关文章:

  • 2022-12-23
  • 2021-05-09
  • 2022-12-23
  • 2021-05-14
  • 2021-08-23
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2022-12-23
  • 2021-07-10
  • 2021-08-23
相关资源
相似解决方案