<th v-for="(person,index) in people"> <td> {{person}} </td> <td class="text-center"> <button v-on:click="deleteItem(index)">delete</button> </td> </th></tr>為什么把td標(biāo)簽換成其它比如div后,就可以了,否則報(bào)下面這個(gè)錯(cuò)誤: Property or method "person" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.求vue大神指點(diǎn)
vue <td>標(biāo)簽中不能使用v-for中的數(shù)據(jù)
qq_遁去的一_1
2018-12-20 16:14:21