JS获取本机MAC地址信息
摘要:
function getMac() { var locator = new ActiveXObject("WbemScripting.SWbemLocator"); // 创建ActiveXObject对象 var service = locator.ConnectServer("."); //连接本机服务器 var properties = service.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration Where IPEnabled = TRUE"); // 查 阅读全文
posted @ 2013-02-05 13:54 王培 阅读(6812) 评论(0) 推荐(0) 编辑