generate a list through v-for. The tr in each line has a copy button. Click copy to implement a td text node in tr copy, does not know how to get the item.code text node. The specific code is as follows:
< tr v index = "(item,index) in userListLimit": key= "index" >
<td>{{item.inserted_at}}</td>
<td ref="itemCode">{{item.code}}</td>
<td>{{item.inviter}}</td>
<td>{{item.invitee}}</td>
<td>{{item.when_long}}</td>
<td :title="item.note">{{item.note}}</td>
<td>
<a v-if= "item.invitee==""?true:false" @click="myCopy($event)"></a>
</td>
< / tr >
/ / Click to copy to the clipboard
myCopy(event) {
// event.target.parentNode.previousSibling.select()
document.execCommand("Copy")
},