var express = require('express');var app = express(); app.get('/', function (req, res) { res.send('Hello World');}) var server = app.listen(8081, function () { var host = server.address().address var port = server.address().port console.log("应用实例,访问地址为 http://%s:%s", host, port)})
1 回答
- 1 回答
- 0 关注
- 2207 浏览
添加回答
举报
0/150
提交
取消