vue.js:634 [Vue warn]: Property or method "userName" 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. See:

时间:2022-5-26    作者:老大夫    分类: JAVA


原因: vue使用了插值表达式,但是未在data中声明

解决: 在data{ } 中声明就好了

转载: https://blog.csdn.net/qq_43498860/article/details/120241962

标签: vue


扫描二维码,在手机上阅读

推荐阅读: