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 + + +
+ + +