当从 node_modules 目录外的代码运行时,则调用此构造函数会触发弃用警告。
node_modules
调用此构造函数不再触发弃用警告。
现在调用此构造函数会触发弃用警告。
弃用于: v6.0.0
Buffer.from(array)
¥Stability: 0 - Deprecated: Use Buffer.from(array) instead.
array <integer[]> 要从中复制的字节数组。
array
¥array <integer[]> An array of bytes to copy from.
参见 Buffer.from(array)。
¥See Buffer.from(array).