1、将对象转换为JSON格式字符串 JSON.stringify(object) 2、将JSON字符串转换为对象 JSON.parse(jsonString); https://blog.csdn.net/qq_35366269/article/details/83147072