• 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);
    
    

  • 相关阅读:
    HDU 1423
    POJ 3264
    POJ 3177
    CodeForces 81A
    SPOJ RATING
    ZOJ 2588
    POJ 1523
    POJ 3667
    递归
    数据结构
  • 原文地址:https://www.cnblogs.com/gqv2009/p/13602059.html
Copyright © 2020-2023  润新知