Json 存儲的問題 原

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