What does Ethereum browser use to store data
Localstorage is stored in the browser
Inlocalstorage, the size of 5m is generally supported by browsers, which will be different in different browsers
localstorage:
is used to save the data of the whole website for a long time. The saved data has no expiration time until it is deleted manually
Thelocalstorage property is read-only
if you only want to save the data in the current session, you can use the sessionstorage property to change the data object to temporarily save the data in the same window (or tab). After closing the window or tab, the data will be deleted
extended data:
localstorage mainly includes the following methods:
1, localstorage. Setitem (& quot; key", & quot; value");
stores a value named key. If the key exists, the value will be updated
example:
localstorage.setitem (& quot; name",& quot; john"); // Set the name to John
localstorage. Setitem (& quot; name",& quot; john1"); // The value corresponding to name is john1
2, VAR LastName = localstorage. Getitem (& quot; key");
gets the value named key, and returns NULL if the key does not exist< br />
3、localStorage.removeItem(" key");
delete the information named "key", and all the values corresponding to the key will be deleted
4. Localstorage. Clear():
clear all information in localstorage< br />
the length is not limited, and any character is supported. It can also be treated as a string
I once made a website collection software, which is a note type.