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