Js 对象数组,转化为字符串

var str = [{"cuid":"23910","content":"是","type":"常规","workload":"8","completeType":3,"completeSchedule":3,"eta":3,"reason":""}, {"cuid":"23910","content":"辅导辅导费","type":"新增","workload":"9","completeType":3,"completeSchedule":3,"eta":3,"reason":""}]


v str_pretty1 = JSON.stringify(str)

JSON.stringify() 方法用于将 JavaScript 值转换为 JSON 字符串。

原文地址:https://www.cnblogs.com/LEEEEEASON/p/7007409.html