通过js获取 服务器 ip 服务器端口 服务器地址
var address=window.location.href;
thisDLoc = document.location;
var hostport=document.location.host;
本文介绍如何利用JavaScript获取当前运行环境的服务器IP、端口号及完整URL地址,包括实例代码演示。
通过js获取 服务器 ip 服务器端口 服务器地址
var address=window.location.href;
thisDLoc = document.location;
var hostport=document.location.host;
4617
317

被折叠的 条评论
为什么被折叠?