node中文乱码
const http = require(‘http’)
http.createServer((req, res) => {
// req.writeHead(200, { “content-type”: “text/html;charset=utf-8” })//乱码
res.writeHead(200, { “content-type”: “text/html;charset=utf-8” })//这里不是请求 应该为响应
})
node中文乱码
最新推荐文章于 2023-01-29 16:02:46 发布