Min's blog

I choose to see the beauties in the world.

导航

03 2018 档案

摘要: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 阅读(272) 评论(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)

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

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

摘要:轮播图 阅读全文

posted @ 2018-03-28 16:32 Min77 阅读(117) 评论(0) 推荐(0)

摘要:function backTop(back) { back.hide(); $(window).scroll(function () { $(window).scrollTop() > 0 ? back.fadeIn(500) : back.fadeOut(500); }); back.click( 阅读全文

posted @ 2018-03-28 16:25 Min77 阅读(421) 评论(0) 推荐(0)