报错
Property or method "i" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
代码
<tr>
<div v-for="i in msg" :key="i.webid">
<tr>{{i}}</tr>
</div>
</tr>
数据中有绑定
let app = new Vue({
el: "#app",
router: route,
data() {
return {
msg: ''
}
},
此时报错
数据从数据库中获取更新
但是换span 或者 div 就能正常显示
<tr>
<div v-for="i in msg" :key="i.webid">
<span>{{i.idweb}}-{{i.webcol}}</span>
</div>
</tr>
我对v-for 理解不够希望有大佬能解答