摘要: HTTP模块 http.get方法发送请求 ~~~ const http = require('http'); const urlTool = require('url'); const url = urlTool.format({ protocol: 'http:', host: "localho 阅读全文
posted @ 2020-03-17 22:51 IslandZzzz 阅读(2760) 评论(0) 推荐(0) 编辑
摘要: node内置模块 url url模块常用于请求地址解析 usr.parse(url,bool) 仅当二参为true,则将url中的参数解析成对象放在query属性中 ~~~ const url = require('url'); const strUrl1 = 'http://www.lagou.c 阅读全文
posted @ 2020-03-17 00:01 IslandZzzz 阅读(794) 评论(0) 推荐(0) 编辑