javascript - Regarding the problem of variables in vue methods.
高洛峰
高洛峰 2017-05-19 10:17:09
0
1
653

Why do I have to use this to save the timer variable, otherwise it will prompt Undefined.

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
左手右手慢动作

Originally both functions will use that variable, and the parallel functions have independent scopes.
It must be mounted in a context that everyone can access, and this context is an instance of vue, which is this

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template