js获取地址栏信息 参考: http://www.w3school.com.cn/jsref/dom_obj_location.asp http://www.xxx.com:8081/ location.host = www.xxx.com:8081