let encodedString = String.fromCodePoint.apply(null, new Uint8Array(buffer));
let decodedString = decodeURIComponent(escape(encodedString)); //没有这一步中文会乱码
console.log(JSON.parse(decodedString), '收到')
let encodedString = String.fromCodePoint.apply(null, new Uint8Array(buffer));
let decodedString = decodeURIComponent(escape(encodedString)); //没有这一步中文会乱码
console.log(JSON.parse(decodedString), '收到')