Blog A Paranoid Guy

Node.js--URL模块

2016-07-28

URL对象

http://user:pass@host.com:8080/p/a/t/h?query=string#hash 为例,URL对象的各个部分如下图:


方法

  • url.format(urlObject)

  • url.parse(urlString[, parseQueryString[, slashesDenoteHost]])

  • rul.resolve(from, to)


上一篇 Babel入坑须知

Comments