JSON.parse() 将json数据的字符串解析为JavaScript对象
console.log(typeof JSON.parse('{"name":"ws"}'))
//输出结果 object ({name: "ws"})
JSON.stringify() 将JavaScript对象转换为json数据的字符串
let a={name: "ws"}
console.log(typeof JSON.stringify(a))
//输出结果 string ('{name: "ws"}')