JSON 字符串转换为对象 const object = JSON.parse(str) 对象转换为JSON 字符串 const str = JSON.stringify(object) 数组转换字符串 arr.join(',') 字符串转换数组 str.split('')