我是搜索
<button @click="xiangq">详情</button>
<button @click="shanchu">删除</button>
<h3>测试</h3>
<table>
<thead>
<tr>
<th>1</th>
<th>2</th>
<th>3</th>
<th>4</th>
<th></th>
</tr>
</thead>
<tbody>
<tr v-for="(item,index) in msg" :key="index">
<td>{{item.a}}</td>
<td>{{item.b}}</td>
<td>{{item.c}}</td>
<td>{{item.d}}</td>
<td>
<button @click="xiangq(item.a)">详情</button>
<button @click="shanchu(item.a)">删除</button>
</td>
</tr>
</tbody>
</table>
</div>