Min's blog

I choose to see the beauties in the world.

导航

2018年3月29日

摘要: var op = document.createElement('p');function IEVersion() { var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isIE = userAgent.indexOf("co 阅读全文

posted @ 2018-03-29 17:24 Min77 阅读(187) 评论(0) 推荐(0) 编辑

摘要: window.location.reload(); 刷新window.location.href='' 重定向可不写windowwindow.location.hostname web 主机的域名 window.location.pathname 当前页面的路径和文件名 window.locatio 阅读全文

posted @ 2018-03-29 16:38 Min77 阅读(114) 评论(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 阅读(201) 评论(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 阅读(100) 评论(0) 推荐(0) 编辑

摘要: //图片简单切换:$('xxx').imgtransition({speed: 3000, animate: 1000});$.fn.imgtransition = function(o){ var defaults = { speed : 5000, animate : 1000 }; o = $ 阅读全文

posted @ 2018-03-29 16:05 Min77 阅读(153) 评论(0) 推荐(0) 编辑