function GetLocalIPAddr(){ // get the ip
var oSetting = null;
var ip = null;
try{
oSetting = new ActiveXObject("rcbdyctl.Setting");
ip = oSetting.GetIPAddress;
if (ip.length == 0){
return "can not access Internet";
}
oSetting = null;
}catch(e){
return ip;
}
return ip;
}
javascript获得本地IP
最新推荐文章于 2023-11-01 12:53:25 发布