05 2014 档案

摘要:var globalVariable=null;var globalObject={ init:function(){ $.extend({method:function(e){e}}); //jquery static method extend $.fn.... 阅读全文
posted @ 2014-05-20 09:39 ipup 阅读(189) 评论(0) 推荐(0)
摘要:function(name) { var query=location.search.substring(1); var pairs=query.split("&"); for(var i=0;i<pairs.length;i++) ... 阅读全文
posted @ 2014-05-16 11:37 ipup 阅读(160) 评论(0) 推荐(0)
摘要:function(){ var setCookie= function (name,value) { var Days = 30; var exp = new Date(); exp.setTime(exp.getTime() + Days*24*60... 阅读全文
posted @ 2014-05-15 13:59 ipup 阅读(268) 评论(0) 推荐(0)
摘要:jsfunction:selectBox:function(){ var li=$(this); var selectbox=li.parent().parent(); $("li[data-value="+selectbox.attr("data-checked")+"]"... 阅读全文
posted @ 2014-05-15 12:42 ipup 阅读(215) 评论(0) 推荐(0)
摘要:reverse()反转字符串String.prototype.reverse=function(){return this.split("").reverse().join("")}in_array(a,b) 返回A数组是否在B数组中,a可以是单个字符或多个Array.prototype.in_ar... 阅读全文
posted @ 2014-05-04 17:44 ipup 阅读(175) 评论(0) 推荐(0)
摘要:tipLoad:function(tip,disableScroll){ var maskDiv=$(""),tipDiv; if(!$(tip).length)tipDiv=$(""+tip+""); else { tipDiv=$(... 阅读全文
posted @ 2014-05-04 16:53 ipup 阅读(317) 评论(0) 推荐(0)
摘要:var switchImg=function(){ var currentBtn,currentIndex,lastIndex=btn.filter("."+focusClass).index(); triggerType=$(this).hasClass(dir.attr("class")... 阅读全文
posted @ 2014-05-04 15:07 ipup 阅读(209) 评论(0) 推荐(0)