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