摘要: console.log(window.location.protocol); // 获取协议 console.log(window.location.host); // 获取主机名和端口号 console.log(window.location.hostname); // 获取主机名 console 阅读全文
posted @ 2021-02-21 09:57 独孤靖云 阅读(272) 评论(0) 推荐(0) 编辑