摘要:
var op = document.createElement('p');function IEVersion() { var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isIE = userAgent.indexOf("co 阅读全文
posted @ 2018-03-29 17:24 Min77 阅读(297) 评论(0) 推荐(0)
|
||
|
摘要:
var op = document.createElement('p');function IEVersion() { var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isIE = userAgent.indexOf("co 阅读全文
posted @ 2018-03-29 17:24 Min77 阅读(297) 评论(0) 推荐(0)
摘要:
window.location.reload(); 刷新window.location.href='' 重定向可不写windowwindow.location.hostname web 主机的域名 window.location.pathname 当前页面的路径和文件名 window.locatio 阅读全文
posted @ 2018-03-29 16:38 Min77 阅读(124) 评论(0) 推荐(0)
摘要:
//时钟设置function addZero(n) { return n < 10 ? '0' + n : '' + n;} function tick() { var today = new Date(); var yy = today.getYear(); if (yy < 1900) yy = 阅读全文
posted @ 2018-03-29 16:32 Min77 阅读(259) 评论(0) 推荐(0)
摘要:
1. //iphone下设置元素宽度function setWidth(){ var clientWidth = document.documentElement.clientWidth; if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent) 阅读全文
posted @ 2018-03-29 16:30 Min77 阅读(104) 评论(0) 推荐(0) |
||