1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

出入码下拉刷新功能;内网穿透配置文件

This commit is contained in:
2022-11-26 15:31:35 +08:00
parent 00652ee179
commit eaecc486df
11 changed files with 115 additions and 45 deletions

View File

@@ -6,6 +6,8 @@ const server = http.createServer();
// 3. 监听请求事件
server.on("request", (req, res) => {
console.log(new Date(), "req.url", req.url);
//req-->request 请求对象, res-->response 响应对象
// 通过响应头设置返回前台数据格式及编码。(解决中文乱码的问题)
// res.setHeader('Content-Type', 'text/html;charset=utf-8');