- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 封装存储localStorage
const setStore = (name, content) => { if (!name) return; if (process.browser) { if (typeof content !== 'string') { content = JSON.stringify(content); } window.localStorage.setItem(name, content); }};...
2021-08-19 18:17:41 83
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人