- alert("location:"+window.location);
- alert("href: "+window.location.href);
- alert("protocol: "+window.location.protocol);
- alert("host&port: "+window.location.host);
- alert("port: "+window.location.port);
- alert("hostname: "+window.location.hostname)
js获取服务端IP、端口、协议
最新推荐文章于 2024-07-02 15:46:31 发布