JSON对象和string的相互转换

JSON.stringify(obj) 将JSON转为字符串。

JSON.parse(string) 将字符串转为JSON格式。

posted @ 2016-02-28 17:51  光尘9022  阅读(232)  评论(0)    收藏  举报