window.location 的各个参数
window.location各属性的值 :
window.location.href --"https://i.cnblogs.com/EditPosts.aspx?opt=1"
window.location.protocol --"https:"
window.location.host-- "i.cnblogs.com"
window.location.port --返回端口号
window.location.pathname-- "/EditPosts.aspx"
window.location.search--"?opt=1"
window.location.hash-- 返回锚点 #test