张恒

--no commit message

1 -var express = require('express') 1 +const express = require('express')
2 const path = require('path') 2 const path = require('path')
3 -var app = express() 3 +const app = express()
4 4
5 app.use(express.static(path.join(__dirname, './client'))) 5 app.use(express.static(path.join(__dirname, './client')))
6 6
7 -var server = app.listen(25565, function () { 7 +const server = app.listen(25565, function () {
8 - var host = server.address().address 8 + const host = server.address().address
9 - var port = server.address().port 9 + const port = server.address().port
10 10
11 console.log('服务启动', host, port) 11 console.log('服务启动', host, port)
12 }) 12 })
......