JavaScript localstorage

Localstorage.setItem(“key”, “value”); ——设置localstorage
Localstorage.getItem(“key”); ——获取localstorage
Localstorage.removeItem(“key”); ——删除localstorage