摘要: 1、设置或获取整个 URL 为字符串: window.location.href 2、设置或获取与 URL 关联的端口号码: window.location.port 3、设置或获取 URL 的协议部分 window.location.protocol 4、(www.jbxue.com)设置或获取 ... 阅读全文