将true false存在本地,直接取出是字符串 用户2246220511315 2021-11-26 56 阅读1分钟 问题 解决 localStorage.setItem('i',JSON.stringify(true)) let i = JSON.parse(localStorage.getItem('i')) typeof i