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

监听数值变化 #2

Open
intelinside opened this issue Jun 25, 2019 · 2 comments
Open

监听数值变化 #2

intelinside opened this issue Jun 25, 2019 · 2 comments

Comments

@intelinside
Copy link

却发现回调函数里取值是数值变化前的值? 变化前的数值没有什么意义。

@wsssheep
Copy link
Owner

数值变化的回调函数,触发时间 是 在数值改变之前的那一刻
所以你在回调函数直接 通过 绑定的data / VM路径 取到的值是旧的值,只能从回调函数的参数中获取即将改变的新值。

@intelinside
Copy link
Author

哦哦

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

2 participants