js獲取設備信息
...
...
...
轉 : https://www.cnblogs.com/ysx215/p/12024621.html ...
1,設置或獲取對象指定的文件名或路徑。 alert(window.location.pathname) 2,設置或獲取整個 URL 為字符串。 alert(window.location.href); 3,設置或獲取與 URL 關聯的端口號 ...
思路,通過ajax重新請求當前頁面,用getAllResponseHeaders方法獲取: var req = new XMLHttpRequest();req.open('GET', document.location, false);req.send(null);console.log ...
引入jquery.js $.getScript('http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js',function(){ alert(remote_ip_info.country ...
引入jquery.js $.getScript('http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js',function(){ alert(remote_ip_info.country ...