From 9b0d7f4084149cb6906d73169ac4b0224c7d15b4 Mon Sep 17 00:00:00 2001 From: Yi Feng <66539215+bigyifeng@users.noreply.github.com> Date: Tue, 15 Aug 2023 11:49:01 +0800 Subject: [PATCH] Update fs.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 错误信息修改 --- "\346\250\241\345\235\227/fs.md" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/\346\250\241\345\235\227/fs.md" "b/\346\250\241\345\235\227/fs.md" index bcc2eb2..3f3199e 100644 --- "a/\346\250\241\345\235\227/fs.md" +++ "b/\346\250\241\345\235\227/fs.md" @@ -566,7 +566,7 @@ try{ 比较底层的接口,实际需要用到的机会不多。需要用到的时候看下[文档](https://nodejs.org/api/fs.html#fs_fs_open_path_flags_mode_callback)就行。 * flags:文件打开模式,比如`r`、`r+`、`w`、`w+`等。可选模式非常多。 -* mode:默认是`666`,可读+可写。 +* mode:默认是`r`,可读+可写。 >fs.open(path, flags[, mode], callback) >fs.openSync(path, flags[, mode])