43

Vue 之keep-alive的使用,实现页面缓存

 4 years ago
source link: https://juejin.im/post/5ddcefaef265da06113c6fa9
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
什么是keep-alive 有时候我们不希望组件被重新渲染影响使用体验;或者处于性能考虑,避免多次重复渲染降低性能。而是希望组件可以缓存下来,维持当前的状态。这时候就需要用到keep-alive组件。 官网释义: <keep-alive> 包裹动态

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK