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 的 $nextTick #103

Open
lovelmh13 opened this issue Jul 5, 2021 · 0 comments
Open

关于 vue 的 $nextTick #103

lovelmh13 opened this issue Jul 5, 2021 · 0 comments

Comments

@lovelmh13
Copy link
Owner

应用场景

  1. Vue 生命周期的 created 钩子函数进行 DOM 操作时一定要放在 $nextTick 的回调函数里。
  2. 当项目中你想在改变 DOM 元素的数据后,基于新 DOM 做点什么时
  3. 在使用某个第三方插件时,希望在 vue 生成的某些 dom 动态发生变化时,重新应用该插件,调用这个
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