posted @ 2018-03-29 17:24
03 2018 档案
摘要:var op = document.createElement('p');function IEVersion() { var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isIE = userAgent.indexOf("co
阅读全文
摘要:window.location.reload(); 刷新window.location.href='' 重定向可不写windowwindow.location.hostname web 主机的域名 window.location.pathname 当前页面的路径和文件名 window.locatio
阅读全文
posted @ 2018-03-29 16:38
摘要://时钟设置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
摘要:1. //iphone下设置元素宽度function setWidth(){ var clientWidth = document.documentElement.clientWidth; if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)
阅读全文
posted @ 2018-03-29 16:30
摘要://图片简单切换:$('xxx').imgtransition({speed: 3000, animate: 1000});$.fn.imgtransition = function(o){ var defaults = { speed : 5000, animate : 1000 }; o = $
阅读全文
posted @ 2018-03-29 16:05
摘要: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
浙公网安备 33010602011771号