1
sharpnk 2013-07-26 21:31:04 +08:00
> 想知道这个 61 62 63 叫做啥编码?
ASCII 试试: var buf = new Buffer('abc', 'utf-8'); |
2
willwen 2013-08-01 09:23:09 +08:00
Buffer放的是二进制数据。http://nodejs.org/api/buffer.html#buffer_buffer
|
3
mrluanma 2013-08-01 10:52:11 +08:00
|
4
mrluanma 2013-08-01 10:54:41 +08:00
试着只贴一个 gist 连接貌似不行: https://gist.github.com/mrluanma/7fa587dfb46eb864df64
var buf = new Buffer(new Array(100).join('abc')); var arr = new Array(); for (var i = 0; i < buf.length; i++) { arr.push(buf[i].toString(16)); } console.log(arr.join(' ')); |
5
mrluanma 2013-08-01 11:04:16 +08:00
|
6
coolicer 2013-08-01 14:20:47 +08:00
一样的头像,好巧。
|
7
anheiyouxia 2013-08-02 00:04:25 +08:00
@coolicer 你们在一起吧~~~^_^
|