no message
This commit is contained in:
+7
-7
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user