You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
296 B

2 years ago
const express = require("express")
const path = require("path")
const app = express()
app.use(express.static("static"))
console.log(path.join(__dirname,"static"))
// 最好实用console中的地址
// 嗲用地址不用static
app.get("/",(req,res)=>{
res.send("你好")
})
app.listen(80)