Esther-yan
function MacInfo(){
    //访问到WbemScripting对象
    var locator =new ActiveXObject ("WbemScripting.SWbemLocator");
    //访问本地电脑
    var service = locator.ConnectServer(".");
    //获取我们需要的对象的记录集
    var properties = service.ExecQuery("Select * from Win32_NetworkAdapterConfiguration Where IPEnabled =True");
    var e =new Enumerator (properties);
        var p = e.item();
        var mac = p.MACAddress;
        return mac;
}

 

分类:

技术点:

相关文章:

  • 2021-11-12
  • 2021-10-24
  • 2021-11-14
  • 2021-11-14
  • 2021-12-07
  • 2021-11-12
  • 2021-11-14
  • 2021-11-14
猜你喜欢
  • 2021-11-12
  • 2021-11-14
  • 2021-11-14
  • 2021-11-24
  • 2021-11-14
  • 2021-11-14
  • 2021-11-19
相关资源
相似解决方案