对象转字符串: var str = JSON.stringify(obj); 字符串转对象: var str = JSON.parse(str); 转载于:https://www.cnblogs.com/liangfengbo/p/7305584.html