标签:
url.parse(‘http://www.imooc.com/course/list‘)
Url {
protocol: ‘http:‘, 指定底层协议
slashes: true, 是否有协议的双斜线
auth: null,
host: ‘www.imooc.com‘,
port: null,
hostname: ‘www.imooc.com‘,
hash: null,
search: null,
query: null, http的
pathname: ‘/course/list‘,
path: ‘/course/list‘,
href: ‘http://www.imooc.com/course/list‘ }
标签:
原文地址:http://www.cnblogs.com/zrui513/p/5372459.html