JSON.stringify(object); //将object类型转换成json string JSON.parse(string); // 将string类型转换称json 对象 转载于:https://www.cnblogs.com/shouwangzhe-/p/3956051.html