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     },

 

posted @ 2021-03-09 17:21  小小枝子  阅读(2754)  评论(0编辑  收藏  举报