node.js的文件上传
首先为大家推荐一些nodejs的有关资源.
node.js中文社区: http://cnodejs.org/
Node.js入门教程(E文):http://nodebeginner.org/
中文用户手册: http://cnodejs.org/cman/
node.js API文档: http://cnodejs.org/api/
npm依赖管理工具(node 中的RubyGems): http://npmjs.org/
Node Cloud(全面的node.js资料库):http://www.nodecloud.org/
1.什么是node.js
Node.js是一个服务器端框架,基于Google的V8 JavaScript引擎创建,旨在利用事件触发、非阻塞的I/ O帮助开发人员构建高度可伸缩的网络程序
2.代码
Administrator@WIN-23C1Q4GKQ4G ~$ node /example/index.jsserver is startingPathname--------------:/start is comingroute a request for: /startRequest handler 'start' was called.Pathname--------------:/upload is comingroute a request for: /uploadUpload:[object Object] ---- ===parsing is overPathname--------------:/show is comingroute a request for: /showshow