localStorage.getItem 往浏览器里面储存数据到本地localStorage
借鉴https://blog.csdn.net/aaa333qwe/article/details/79025336往浏览器里面储存数据localStorage.setItem(‘todos’, JSON.stringify(value))读取const list = JSON.parse(localStorage.getItem(‘todos’)) || []
·
借鉴https://blog.csdn.net/aaa333qwe/article/details/79025336
往浏览器里面储存数据
localStorage.setItem(‘todos’, JSON.stringify(value))
读取
const list = JSON.parse(localStorage.getItem(‘todos’)) || []
更多推荐
所有评论(0)