关于url.parse的效果和老师课堂上不一致
> url.parse('//jia:xiaolei@www.imooc.com:8080/video/6710?a=b&c=d#12345') { protocol: null, slashes: true, auth: 'jia:xiaolei', host: 'www.imooc.com:8080', port: '8080', hostname: 'www.imooc.com', hash: '#12345', search: '?a=b&c=d', query: 'a=b&c=d', pathname: '/video/6710', path: '/video/6710?a=b&c=d', href: '//jia:xiaolei@www.imooc.com:8080/video/6710?a=b&c=d#12345' } > url.parse('//jia:xiaolei@www.imooc.com:8080/video/6710?a=b&c=d#12345', true, true) { protocol: null, slashes: true, auth: 'jia:xiaolei', host: 'www.imooc.com:8080', port: '8080', hostname: 'www.imooc.com', hash: '#12345', search: '?a=b&c=d', query: { a: 'b', c: 'd' }, pathname: '/video/6710', path: '/video/6710?a=b&c=d', href: '//jia:xiaolei@www.imooc.com:8080/video/6710?a=b&c=d#12345' } > url.parse('//jia:xiaolei@www.imooc.com:8080/video/6710?a=b&c=d#12345', true) { protocol: null, slashes: true, auth: 'jia:xiaolei', host: 'www.imooc.com:8080', port: '8080', hostname: 'www.imooc.com', hash: '#12345', search: '?a=b&c=d', query: { a: 'b', c: 'd' }, pathname: '/video/6710', path: '/video/6710?a=b&c=d', href: '//jia:xiaolei@www.imooc.com:8080/video/6710?a=b&c=d#12345' } > url.parse('//jia:xiaolei@www.imooc.com:8080/video/6710?a=b&c=d#12345') { protocol: null, slashes: true, auth: 'jia:xiaolei', host: 'www.imooc.com:8080', port: '8080', hostname: 'www.imooc.com', hash: '#12345', search: '?a=b&c=d', query: 'a=b&c=d', pathname: '/video/6710', path: '/video/6710?a=b&c=d', href: '//jia:xiaolei@www.imooc.com:8080/video/6710?a=b&c=d#12345' }
url.parse(path, true, true) 对于 无协议头的URL解析没有差别?