vuex中store.state.count 通過localstore 也是也是實現的
vuex中store.state.count? 通過localstore 也是也是實現的,
store 和? localstore.setItem 使用上有什么區別?
使用場景都是什么樣的?
vuex中store.state.count? 通過localstore 也是也是實現的,
store 和? localstore.setItem 使用上有什么區別?
使用場景都是什么樣的?
2019-09-22
舉報
2019-09-22
store在內存中,localstorage是本地緩存文件中,如果刷新瀏覽器store會被清除,而localstorage如果沒有去刪除的話,則一直存在。