09 2015 档案
摘要:一、JavaScript跨平台事件 对于跨平台事件我们一般这么写(只例举添加事件):function addEventHandler(oTarget, sEventType, fnHandler){ if(oTarget.addEventListener){ oTarget.a...
阅读全文
摘要:一、取URL中的参数function getParameterByName(name) { var match = RegExp('[?&]' + name + '=([^&]*)') .exec(window.location.search); r...
阅读全文
摘要:$(function(){saveinfo.init();});var saveinfo = {init : function(){var self = this;self.bind();},bind : function(){var self = this;$("#btn").on('click'...
阅读全文
摘要://-------图片轮播1 --> window.mySwipe = new Swipe(document.getElementById('slider'), {speed: 400,auto: 3000,continuous: true,disableScroll: false,stopProp...
阅读全文
摘要://----------------------------------//常用js方法收录,解决各类兼容性问题。//author:Kekang//date:2015-6-29//remarks:分为兼容性区,工具区,常用校验方法区和经典方法区。个中方法以原生js优先//--------------...
阅读全文
摘要://******************************************************************************//***********************--------------js篇--------------**************...
阅读全文
摘要:返回上一页并刷新某年某月的1号为星期几var weekday = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];weekday[new Date(2015, 9, 1).getDay()]; //2015年10月1号var u = navigat...
阅读全文
摘要:event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键event.keyCode event.shiftKey event.altKey event.ctrlKey事件返回值event.returnValue鼠标位...
阅读全文
浙公网安备 33010602011771号