1
coolicer 2014-07-01 15:43:00 +08:00
app.listen = function(){
var server = http.createServer(this); return server.listen.apply(server, arguments); }; 返回一个http实例 |
2
Pazzilivo 2014-07-01 22:34:54 +08:00 via Android
你没加载node.js 的核心模块吧,加载以后按住command 可以直接跳转到那个函数的
|
3
knightluffy OP |
4
imjiangtao 2014-07-07 17:41:17 +08:00
npm install connect
var connect = require('connect'); var app = connect(); app.use(function(req,res,next){// your code}); app.listen(80) |