Json 存储的问题 原

今天用了localStorage.setItem('authenType', this.radio)对authenType对象进行存储 在获取这个值的时候需要注意,存储的是json的string类型 所以需要JSON.parse(localStorage.getItem('authenType'))
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章