摘要:
url.parse(urlStr, [parseQueryString], [slashesDenoteHost])#Take a URL string, and return an object.Passtrueas the second argument to also parse the query string using thequerystringmodule. Defaults tofalse.Passtrueas the third argument to treat//foo/baras{ host: 'foo', pathname: '/bar 阅读全文