vue 將json字符串轉換成json對象


 1 GetSettings() {
 2       GetSettings(this.app_id).then((res) => {
 3         if (res.code == 1) {
 4           this.docType = JSON.parse(res.data[0].value);
 5           console.log(this.docType);
 6         } else {
 7           showTip("warning", "查詢失敗");
 8         }
 9       });
10     },

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM