關於字符串裏面出現特殊符號的處理

今天頁面傳值的時候,發現頭像路徑轉string以後內容發生了變化編碼 轉string的時候進行編碼code let info=encodeURIComponent(JSON.stringify(listInfo))string 引用時先進行轉碼引用 let infoObj=decodeURIComponent(info)co
相關文章
相關標籤/搜索