/**
* 获取本地IP地址
*/
function getLocalIPAddress()
{
var obj = null;
var rslt = "127.0.0.1";
try
{
obj = new ActiveXObject("rcbdyctl.Setting");
if (!isNull(obj.GetIPAddress))
{
rslt = obj.GetIPAddress;
}
obj = null;
}
catch(e)
{
//异常发生
}
return rslt;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/tech/pnotes/8882.html