node的fs模块 http://www.jianshu.com/p/5683c8a93511
Node.js path 模块 提供了一些用于处理文件路径的小工具。
node http://javascript.ruanyifeng.com/nodejs/assert.html#
后端查询耗时的做法,最好是使用pub/sub,比如faye模块,走的也是websocket
express处理设置超时时间
var server = app.listen(app.get('port'), function() {
console.log('Express server listening on port ' + app.get('port'));
});
server.timeout = 1200000; //1200s,请求超时时间设置为20min