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     },
原文地址:https://www.cnblogs.com/chenpanpan/p/14506770.html