-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] vue的属性名称与method的方法名称一样时会发生什么问题? #465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
vue
vue
Comments
报错,语法错误 |
报错 |
报错 键名优先级:props > data > methods |
报warn,项目可以运行(vue2.5.17) |
|
@tsejx 你说的这个键名优先级顺序确定是正确的嘛 |
首先看下initState(vm)方法的定义:
再看initMethods (vm, methods):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[vue] vue的属性名称与method的方法名称一样时会发生什么问题?
The text was updated successfully, but these errors were encountered: