Vue clicks on a column of a table, how to get the elements of this element?

when you click on the promotion, you want to get the current ID number. How to write it? jquery is a pure dom operation to find the superior. Is it bad for vue to write dom?

clipboard.png

Mar.20,2021

elementui? for use
in which column, use slot-scope, to pass scope.row through: click. If you haven't written vue, for a long time, you don't remember


in the template, you should render everyone out in a loop, so naturally everyone's id, looks like this:

<tr v-for="(person,index) in persons">
 <td>
   <a @click="doSomething(person.id)"></a>
 </td>
</tr>


vue use elementui, https://element.faas.ele.me/-sharp.

.
Menu