这个方法比调用Buffer.alloc() 更快,但返回的Buffer 实例可能包含旧数据,因此需要使用fill() 或write() 重写。 const buf3 = Buffer.allocUnsafe(10); // 创建一个 ...
確定! 回上一頁