Skip to content
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

vue中的ready()没起作用 #2

Open
firekyrin opened this issue Nov 21, 2016 · 0 comments
Open

vue中的ready()没起作用 #2

firekyrin opened this issue Nov 21, 2016 · 0 comments

Comments

@firekyrin
Copy link
Owner

Q:vue中ready()改变data()中的数值,没有起作用。

A:看的出来你使用的是vue2.0版本,vue2.0中一个vue实例的生命周期中已经不存在ready()了。你还停留在vue1.0中使用ready的阶段。试着转换为mounted。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant