方法一:JSON.stringify. this.codemirror.setValue((JSON.stringify(JSON.parse(jsonStr), null, 2))). 缺点:这样会造成数值类型值的精度丢失,如:
確定! 回上一頁