first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
var http = require('http');
var fs = require('fs');
http.createServer(function(req, res){
res.writeHead(200, {'Content-Type': 'text/html; charset=utf-8'});
var html = fs.readFileSync("./index.html");
res.end(html.toString());
}).listen(3000);

View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h2>hahahahahhah</h2>
</body>
</html>

View File

@@ -0,0 +1,2 @@
var utile = require("./utils");
utile.test()

View File

@@ -0,0 +1,15 @@
{
"name": "2021.08.10",
"version": "1.0.0",
"description": "nodejs学习",
"main": "index.js",
"scripts": {
"start": "node index.js",
"http": "node-dev http.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"node-dev": "^7.0.0"
}
}

View File

@@ -0,0 +1,8 @@
class Utile{
test(){
console.log("测试");
}
}
module.exports = new Utile();