no message

This commit is contained in:
陈银军
2026-08-24 00:35:33 +08:00
parent 9951892909
commit 34c8c3dfe8
2 changed files with 18 additions and 8 deletions
+7 -7
View File
@@ -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-------")
+11 -1
View File
@@ -1 +1,11 @@
hello!vvvvvvvvvvvvvvvv
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
</body>
</html>vvvvvvvvvvvvvvvv