如何通过$event拿到标签值

 
 
<tr id="tr_five" @click="childChe($event)" >
 <td class="td_color">
  </td>
</tr>

 
 
childChe(_my){
  var needtr = $(_my.target).parent().parent();
           //拿到p标签的值用来判断
                 var cheName = needtr.find("td").eq(1).find("p").html();
}

猜你喜欢

转载自blog.csdn.net/qq_39313596/article/details/80669017
今日推荐