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] 说说你对keep-alive的理解是什么? #259
Labels
vue
vue
Comments
保存历史状态 |
保留组件状态 避免重新渲染 |
keep-alive是Vue提供的一个抽象组件,用来对组件进行缓存,从而节省性能,由于是一个抽象组件,所以在页面渲染完毕后不会被渲染成一个DOM元素 |
keep-alive是Vue内置的一个组件,可以使被包含的组件保留状态,或避免重新渲染 |
包裹动态组件时,会缓存不活动的组件实例,而不是销毁它们。所以再次回到上一个页面,该页面状态会保持,不会重新渲染。 |
缓存包含组件和他的状态,避免重新渲染 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[vue] 说说你对keep-alive的理解是什么?
The text was updated successfully, but these errors were encountered: