vuex中store.state.count 通过localstore 也是也是实现的,
store 和 localstore.setItem 使用上有什么区别?
使用场景都是什么样的?
store在内存中,localstorage是本地缓存文件中,如果刷新浏览器store会被清除,而localstorage如果没有去删除的话,则一直存在。