赞
踩
保存的时候必须是JSON.stringfy(localStorage.setItem("起的名称",我们需要保存的变量))
获取的时候这么获取
JSON.parse(JSON.strringfy("我们起的名字") as string)