小白,请教各位大佬!Vue中循环出现is not defined无法取出数据大佬们有什么好的建议?

初学前端,在学习vue时遇到如下问题:这边需要两个List,两个List显示不同内容,我打算用两个for循环解决这个问题。然后我写了如下代码,第一个list正常显示,第二个出了错不显示。
Html
    {{searchItem.name}}
    {{mailItem.name}}
js
错误提示
vue.js:634[Vuewarn]:Propertyormethod"mailItems"isnotdefinedontheinstancebutreferencedduringrender.Makesurethatthispropertyisreactive,eitherinthedataoption,orforclass-basedcomponents,byinitializingtheproperty.See:https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
(foundin)
不知道哪里出错了,两个Vue分别注释其中一个也都能正常运行,然后自己也尝试了很多方法也没能解决,还请大家帮忙看一下,谢谢!
30秒到达战场
浏览 1511回答 2
2回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript