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 字符串。

posted @ 2017-06-14 10:10  致良知的萌新  阅读(3343)  评论(0编辑  收藏  举报