直接上代码:app.js var http = require(‘http’); var index =0; http.createServer(function(req,res){ res.writeHead(200,{’content-type’:’text/html’}); res.write('
Node.js
'); res.end('Hello World
'); console.log(' has a request …’+index); index++; }).listen(3000); console.log(‘http server is listening at prot 3000’);使用火狐(IE11)http://localhost:3000访问时,刷新一次,控制台就打印一条 :has a request …1 我换成了用360(chrome 版本为36.0.1985.143)来访问,刷新一次,控制台就会打印两条:has a request …2 has a request …3 想请教一下,是什么原因?(本人刚学)