浏览器下 正常 模拟器中 发送出去的数据长度是1
xhr.open(type, url, true); cc.log("发送数据到web:" + msg, msg.byteLength); xhr.send(msg);
发送前 输出数据也没问题
发送数据到web:[object ArrayBuffer] 28
发送的数据 转成 Int8 如下:
0 20 49 53 49 49 55 56 56 57 49 49 56 57 54 95 56 56 49 51 49 52 0 4 49 50 51 52
抓包 发送的数据
Body 1 bytes
mac下 length 是undefined 
问题原因就是 mac下ArrayBuffer 的 length是undefined