在node.js中,
seek功能包含在
read函数中。使用该
fs.read函数时,有一个名为的参数
position,它用作搜寻位置。
如果要写入文件,则该函数
fs.write还具有
position参数。
在此处检查文档:https
:
//nodejs.org/api/fs.html#fs_fs_read_fd_buffer_offset_length_position_callback

在node.js中,
seek功能包含在
read函数中。使用该
fs.read函数时,有一个名为的参数
position,它用作搜寻位置。
如果要写入文件,则该函数
fs.write还具有
position参数。
在此处检查文档:https
:
//nodejs.org/api/fs.html#fs_fs_read_fd_buffer_offset_length_position_callback