fs.writeSync(fd, buffer[, offset[, length[, position]]])


如果 buffer 是普通的对象,则它必须具有自有的(不是继承的)toString 函数属性。

有关详细信息,请参阅此 API 的异步版本的文档:fs.write(fd, buffer...)

If buffer is a plain object, it must have an own (not inherited) toString function property.

For detailed information, see the documentation of the asynchronous version of this API: fs.write(fd, buffer...).