let obj ={a:"123"}
let arr =[{b:"333"}]
localStorage.setItem("obj",JSON.stringify(obj))
localStorage.setItem("arr",JSON.stringify(arr))
let arr1 =localStorage.getItem("arr")
let obj1 = localStorage.getItem("obj")
//-------------------------------------------------
// console.log(JSON.parse(arr1))
// console.log(JSON.parse(obj1))
let arr2 = JSON.parse(arr1)
let obj2 = JSON.parse(obj1)
console.log(obj2.a)
console.log(arr2[0].b)
// 多维数组
console.log(arr2)
arr2.map((item,i)=>{
console.log(item,i)
})
console