const a = encodeURIComponent(JSON.stringify(data))
const b = JSON.parse(decodeURIComponent(a))
使用encodeURIComponent先编码再解码
const a = encodeURIComponent(JSON.stringify(data))
const b = JSON.parse(decodeURIComponent(a))
使用encodeURIComponent先编码再解码