JS 解析 bytearray 成字符串

JS解析

function bin2String(array) {
  return String.fromCharCode.apply(String, array);
}

var bit= [104,101,108,108,111,32,119,111,114,108,100];

var bit= [104, 118, 108, 115, 113, 56, 56, 108, 52, 103, 109, 115, 118, 103, 52, 112]

var tostring=bin2String(['104','101','108','108','111','32','119','111','114','108','100']); // "hello word"
    console.log(tostring);

原文地址:https://www.cnblogs.com/gqv2009/p/13602059.html