在home.js暴露一个数组navData


import导入之后,vue组件在使用navData遍历的过程中

报了个错误

大致意思:navData没有在实例上定义,但在渲染的期间被调用了.
navData而且是能拿到数据的


navData它不属于在实例上的data里面定义的所以用不了,那么我们只要把nabData赋值到data里面的某个属性即可

使用TabTitle就成功可以渲染了

在home.js暴露一个数组navData
import导入之后,vue组件在使用navData遍历的过程中
报了个错误
大致意思:navData没有在实例上定义,但在渲染的期间被调用了.
navData而且是能拿到数据的
navData它不属于在实例上的data里面定义的所以用不了,那么我们只要把nabData赋值到data里面的某个属性即可
使用TabTitle就成功可以渲染了
本文标题:Property or method "变量" is not d
本文链接:https://www.haomeiwen.com/subject/gppdektx.html
网友评论