642590
有这么一个简单的中间件 function helloworld(req,res) { res.end('hello world'); }
module.exports = helloworld;
然后想将它加到connect服务器中 var connect = require('connect');
var helloworld = require('./helloworld');
var app = connect.createServer(helloworld);
app.listen(8080);
运行显示connect没有createServer方法 不知道怎么回事 求大神解答