之前的图是旧版本,是 url.parse()方法,现在有了实现 WHATWG标准的新 API:https://nodejs.org/api/url.html#url_url_strings_and_url_objects 