4.window.location.protocol(设置或获取 URL 的协议部分)
5.window.location.hash(设置或获取 href 属性中在井号“#”后面的分段。)
6,window.location.host(设置或获取 location 或 URL 的 hostname 和 port 号码。)
7,window.location.search(设置或获取 href 属性中跟在问号后面的部分。)
8,获取变量的值(截取等号后面的部分)
var url = window.location.search;
// alert(url.length);
// alert(url.lastIndexOf('='));
var loc = url.substring(url.lastIndexOf('=')+1, url.length);
9,用来得到当前网页的域名
var domain = document.domain;