vue 通过绑定事件获取当前行的id

<div @click="router(items.productId)"  style="float: left;" :key='items.productName' v-for="items in item"> </div>

获取:

router(e){
              conslone.log(e);
         }
原文地址:https://www.cnblogs.com/nongzihong/p/10281576.html