‘http://user:pass@sub.host.com:8080/p/a/t/h?query=string#hash‘
URL 字符串与 URL 对象
原文:https://www.cnblogs.com/jsxyz/p/9432656.html