console.log(location.href)
console.log(location.protocol) // 'http:' 'https:'
console.log(location.pathname) // '/learn/199'
console.log(location.search)
console.log(location.hash)
拆解url的各部分
猜你喜欢
转载自www.cnblogs.com/mushitianya/p/10662017.html
今日推荐
周排行