From 34c8c3dfe800d63462b38d45f31ef762f05f4ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=93=B6=E5=86=9B?= Date: Mon, 24 Aug 2026 00:35:33 +0800 Subject: [PATCH] no message --- test1/fs.js | 14 +++++++------- test1/static/hehe.html | 12 +++++++++++- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/test1/fs.js b/test1/fs.js index d0906b3..5bd2516 100644 --- a/test1/fs.js +++ b/test1/fs.js @@ -11,13 +11,13 @@ fs.readFile('./static/1.html','utf-8',function(err, dataStr){ console.groupEnd() console.group("-------writeFile-------") -fs.writeFile('./static/hehe.html','hello!','utf-8',function(err){ - if(err){ - console.log("文件写入失败") - return - } - console.log("文件写入成功!") -}) +// fs.writeFile('./static/hehe.html','hello!','utf-8',function(err){ +// if(err){ +// console.log("文件写入失败") +// return +// } +// console.log("文件写入成功!") +// }) console.groupEnd() console.group("-------appendFile-------") diff --git a/test1/static/hehe.html b/test1/static/hehe.html index f80b191..c44b170 100644 --- a/test1/static/hehe.html +++ b/test1/static/hehe.html @@ -1 +1,11 @@ -hello!vvvvvvvvvvvvvvvv \ No newline at end of file + + + + + + Document + + + + +vvvvvvvvvvvvvvvv \ No newline at end of file