Vue2.0 实现页面缓存和不缓存的方式 1、在app中设置需要缓存的div<keep-alive>//缓存的页面<router-viewv-if="$route.meta.keepAlive">& 不缓存