2018年6月23日

Node.js http服务器搭建和发送http的get、post请求

摘要: 1.Node.js 搭建http服务器 1.1创建server.js 1.2执行 server.js 1.3服务器启动 通过浏览器地址请求:http://localhost:8124 2.发送GET请求 2.1发送get请求通过聚合服务器获取微信新闻数据 2.2 执行 get_demo.js 2.3 阅读全文

posted @ 2018-06-23 23:15 bijian1013 阅读(841) 评论(0) 推荐(0)

node.js获取url中的各个参数

摘要: 实例代码test.js 运行curl "http://localhost:3000/getName?code=abc&name=test",输出结果如下所示: 总结 1.node.js获取url参数先引入url和querystring两个模块 2.用url.parse方法将url字符串转化为对象,并 阅读全文

posted @ 2018-06-23 22:50 bijian1013 阅读(841) 评论(0) 推荐(0)

在Linux系统安装Nodejs最简单步骤

摘要: 一.去官网下载和自己系统匹配的文件 英文网址:https://nodejs.org/en/download/ 中文网址:http://nodejs.cn/download/ 通过 uname -a 命令查看到我的Linux系统位数是64位(备注:x86_64表示64位系统, i686 i386表示3 阅读全文

posted @ 2018-06-23 22:46 bijian1013 阅读(154) 评论(0) 推荐(0)

导航