Skip to content

Commit

Permalink
端口提示
Browse files Browse the repository at this point in the history
  • Loading branch information
Vivomo committed Nov 17, 2020
1 parent 365c475 commit 28117a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ let fs = require('fs');
let path = require('path');

let root = '.';
const PORT = 9999;
const DEFAULT_URL = '/index.html';

const getContentType = (suffix) => {
Expand Down Expand Up @@ -50,6 +51,6 @@ http.createServer((req, res) => {
res.end();
});

}).listen(9999);
}).listen(PORT);

console.log('服务器开启成功');
console.log('服务器开启成功', PORT);

0 comments on commit 28117a8

Please sign in to comment.