vue -for循环 怎么获取点击事件里面的参数

<Row span="24" style="height: 320px;overflow: hidden;">

  <Col style="position: relative;left: 30px;top: 40px;height: 50px;overflow: hidden;" v-for="(item, index) inmarqueeList" :class="{marquee_top:animate}" span="22">

    <Col style="height: 200px;overflow: hidden;" span="24">

      <span style="font-size:14px;color: #FE625B;display: inline-block;width:38px;height:19px;"> {{item.type}}

      <span style="display: inline-block;width: 300px;height:19px;font-size: 14px;white-space: nowrap;overflow: hidden; text-overflow:ellipsis;position: relative;top: 5px;left: 10px;">{{item.alarmTime}} {{item.reportName}}

      <span style="display: inline-block;width:67px;height:19px;font-size:14px;color: #2D8CF3;position: relative;left: 15px;cursor: pointer;" @click="policeclick(item.reportName)"> {{item.detail}}

</Row>



policeclick(e){

console.log(e) 就是数组item.reportName里面的参数

},

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容