- 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、端口、协议
猜你喜欢
转载自blog.csdn.net/yulei2008_/article/details/108056855
今日推荐
周排行