存储 localStorage.setItem('名称', JSON.stringify(对象数据)) 取值 let content = JSON.parse(localStorage.getItem('名称'))