摘要:
var ll = {} for (var i = 0; i < localStorage.length; i++) { var key = localStorage.key(i); //获取本地存储的Key ll[key] = localStorage.getItem(key) } console. 阅读全文
摘要:
let obj = { name: '张三', user: { name: 'hdcms', }, data: [], }; function copy(object) { let obj = object instanceof Array ? [] : {}; for (const [k, v] 阅读全文