Vue报错笔记(1)vue.js:515 [Vue warn]: Property or method "name" is not defined on the instance but refere
2017-10-11 11:04
1186 查看
报错:
解决:
ctrl+f 搜索代码里面哪里使用了name,就是你使用了但是在data里面没有定义
name没有定义,设置一个初始值即可
name 在data那里没有定义。
要这样定义:
vue.js:515 [Vue warn]: Property or method "name" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option. (found in root instance)
解决:
ctrl+f 搜索代码里面哪里使用了name,就是你使用了但是在data里面没有定义
name没有定义,设置一个初始值即可
name 在data那里没有定义。
要这样定义:
export default { name: 'app', data() { return { name: '' } }, ......
相关文章推荐
- Android JS桥交互("Uncaught ReferenceError: xxx is not defined or xxx has no method")
- Python 出现错误 SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform.
- 解决 vue.js在火狐浏览器报错 "event is not defined" 的问题
- Bean property 'address' is not readable or has an invalid getter method: Does the return type of th
- 【RAC搭建报错】PRVF-5507 : NTP daemon or service is not running on any node but NTP configuration file exists on the following node(s): rac02,rac01
- Access restriction: The method typeNameToClass(String) from the type ObjectHandler is not accessible due to restriction on required library
- Bean property 'username' is not readable or has an invalid getter method
- [转] --- Error: “A field or property with the name was not found on the selected data source” get only on server
- Entities passed to the choice field must have a "__toString()" method defined (or you can also override the "property" option)
- sn.exe error "Failed to generate a strong name key pair -- The keyset is not defined" Thread Tools Rate Thread
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- Bean property 'sqlSessionTemplate' is not writable or has an invalid setter method. Does the paramet
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- vue.js:Namespace "v-on" is not bound
- Bean property 'RegDao' is not writable or has an invalid setter method. Does the parameter type of t
- [Vue warn]: Attribute "id" is ignored on component <div> because the component is a fragment instan
- Bean property 'productService' is not writable or has an invalid setter method. Does the parameter t
- Bean property 'esyerDao' is not writable or has an invalid setter method. Does the parameter type of
- [Vue warn]: Attribute "id" is ignored on component <div> because the component is a fragment instanc
- 错误:A field or property with the name 'XXX' was not found on the selected data source 解决