摘要:
h5中不能用js来获取mac的。是可以获取ip的。代码 <script>var fso = new ActiveXObject("Scripting.FileSystemObject");var wsh = new ActiveXObject("WScript.Shell");wsh.Run("co 阅读全文
摘要:
//获取浏览器和版本号var userAgent=window.navigator.userAgent, rMsie=/(msie\s|trident.*rv:)([\w.]+)/, rFirefox=/(firefox)\/([\w.]+)/, rOpera=/(opera).+version\/ 阅读全文
摘要:
var weekArray = ['周一'、'周二'、'周三'、'周四'、'周五']存:localStorage.setItem('weekDay',JSON.stringify(weekArray));取: weekArray = JSON.parse(localStorage.getItem(' 阅读全文
摘要:
function deviceType(){ var ua = navigator.userAgent; var agent = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; for(var i=0; i<l 阅读全文