hostname返回web主机域名,效果请点击按钮
pathname返回当前页面的路径和文件名
port返回web主机的端口
protocol返回所使用的web协议http://或https://
href返回当前页面的url
assign()方法加载新的文档