怎么通过 JS获取客户端的MAC地址?在验证用户时,需要用到MAC地址和IP地址。
发布网友
发布时间:2023-04-28 21:58
我来回答
共2个回答
热心网友
时间:2023-11-21 17:49
obj = new ActiveXObject("rcbdyctl.Setting"); ???这个办法好用,你换换浏览器试试,谷歌,和,火狐都试试,
热心网友
时间:2023-11-21 17:49
<SCRIPT language=JScript event=OnObjectReady(objObject,objAsyncContext) for=foo>
if(objObject.IPEnabled != null && objObject.IPEnabled != "undefined" && objObject.IPEnabled == true)
{
if(objObject.MACAddress != null && objObject.MACAddress != "undefined")
MACAddr = objObject.MACAddress;
if(objObject.IPEnabled && objObject.IPAddress(0) != null && objObject.IPAddress(0) != "undefined")
IPAddr = objObject.IPAddress(0);
if(objObject.DNSHostName != null && objObject.DNSHostName != "undefined")
sDNSName = objObject.DNSHostName;
}
</SCRIPT>
热心网友
时间:2023-10-30 16:51
obj = new ActiveXObject("rcbdyctl.Setting"); ???这个办法好用,你换换浏览器试试,谷歌,和,火狐都试试,
热心网友
时间:2023-10-30 16:52
<SCRIPT language=JScript event=OnObjectReady(objObject,objAsyncContext) for=foo>
if(objObject.IPEnabled != null && objObject.IPEnabled != "undefined" && objObject.IPEnabled == true)
{
if(objObject.MACAddress != null && objObject.MACAddress != "undefined")
MACAddr = objObject.MACAddress;
if(objObject.IPEnabled && objObject.IPAddress(0) != null && objObject.IPAddress(0) != "undefined")
IPAddr = objObject.IPAddress(0);
if(objObject.DNSHostName != null && objObject.DNSHostName != "undefined")
sDNSName = objObject.DNSHostName;
}
</SCRIPT>