We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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] 跟keep-alive有关的生命周期是哪些?描述下这些生命周期
The text was updated successfully, but these errors were encountered:
activated和deactivated两个生命周期函数 当keep-alive组件激活时,触发activated,keep-alive组件停用时调用deactivated
Sorry, something went wrong.
activated和deactivated
当组件在 内被切换,它的 activated 和 deactivated 这两个生命周期钩子函数将会被对应执行。被 keep-alive 缓存的组件激活时activated调用。被 keep-alive 缓存的组件停用时deactivated调用。
activated和deactivated keep-alive的生命周期 1.activated: 页面第一次进入的时候,钩子触发的顺序是created->mounted->activated 2.deactivated: 页面退出的时候会触发deactivated,当再次前进或者后退的时候只触发activated
当再次前进或者后退的时候也会触发deactivated吧
No branches or pull requests
[vue] 跟keep-alive有关的生命周期是哪些?描述下这些生命周期
The text was updated successfully, but these errors were encountered: