js对象与字符串相互转换

1. 对象转为字符串

JSON.stringify(obj)


2. json字符串转为对象

JSON.parse(str)
原文地址:https://www.cnblogs.com/500m/p/11004706.html