标签: node.js buffer
enter image description here代码:
var buf = new Buffer.alloc(3,"56574842","hex"); console.log(buf);
结果: enter image description here缓冲区(3)[86、87、72]
为什么不是[56,57,48]?