Json 存储的问题

今天用了localStorage.setItem('authenType', this.radio)对authenType对象进行存储 在获取这个值的时候须要注意,存储的是json的string类型 因此须要JSON.parse(localStorage.getItem('authenType'))json

相关文章
相关标签/搜索