export const local = { set(key, value) { localStorage.setItem(key, JSON.stringify(value)); }, get(key) { return JSON.parse(localStorage.getItem(key)); }, remove(key) { localStorage.removeItem(key); }, };
transfer:
local.set ( "filename", "Content")
local.get ( "filename")
local. the Remove ( "filename")
export
const
local = {
set(
key,
value) {
localStorage.
setItem(
key,
JSON.
stringify(
value));
},
get(
key) {
return
JSON.
parse(
localStorage.
getItem(
key));
},
remove(
key) {
localStorage.
removeItem(
key);
},
};