摘要: npm 1.npm是nodejs的包管理器 2.npm 有很多代码仓库和代码模块 3.npm有一个npm客户端 4.npm本身也是基于Node.js开发的包 5.npm install npm@latest -g 安装最新的npm 6.-g 全局安装,意思是这个包可以作为一个命令行工具来使用了,而不 阅读全文
posted @ 2019-05-17 16:44 ellenxx 阅读(168) 评论(0) 推荐(0) 编辑
摘要: request(http.IncomingMessage)和response(http.ServerResponse)对象介绍 request:服务器解析用户提交的http请求报文,将结果解析到request对象中,凡是要获取和用户请求的数据都可以通过request对象获取 request对象常用类 阅读全文
posted @ 2019-05-17 09:40 ellenxx 阅读(2464) 评论(0) 推荐(0) 编辑