Vuex question

< hr >

speaking vuex , then some people will say that this is done in state management in large-scale projects. Recently, I have been learning this part of the content. I would like to ask you a few questions

.
vuex

Local StorageSession Storage?



Mar.03,2021

  1. in memory, the shutdown or refresh is gone; in cookie,storage, the purge is gone;
  2. depending on your own needs, local,session,cookie may or may not be used;
  3. state, definition, get; getter, get, mutation, modify, submit, Synchronize; action, modify, submit, async;
  4. look at item 2;

the official website says it most clearly: https://vuex.vuejs.org/zh-cn/.


  1. vuex is a state management tool, controller; there is no storage;
    storage is fine. What is Vuex such as session,cookie,localStorage?
  2. Life cycle is the knowledge of vue2.0; ide/instance.html-sharp%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F%E5%9B%BE%E7%A4%BA" rel=" nofollow noreferrer "> Life cycle Diagram

in memory, the page is refreshed and closed, so it is necessary to deal with the problem of users refreshing the page

.
Menu