`
nmgxzm2001
  • 浏览: 10876 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
文章列表
本人一直很喜欢ext的风格,想自己用jquery仿写一个!闲着无事,写个试试,先写了个panel。高手们帮忙看看有没有问题。 EasyJs.Panel=function(config){ EasyJs.Panel.superclass.constructor.call(this,config); } EasyJs.extend(EasyJs.Panel,EasyJs.Component,{ renderTo: document.body, initTool:function(panelHeader){ if(this.collapsible||this.minim ...
/** 检查该元素obj在数组中的位置 */ Array.prototype.indexOf=function(obj){ var length=this.length,i=length-1; for(;i>=0;i--){ if(this[i]==obj){ return i; } } return -1; } /** 判断该元素obj在数组中是否存在 */ Array.prototype.contains=function(obj){ return (this.indexOf(obj)>=0); } /** 在数组 ...
/** * 计算12小时内 时针、分针、秒针重合的时间 */ var fen=0,shi=0,miao=0; for(var i=0;i<(12*60*60);i++){ if(fen==miao&&fen==shi){ document.writeln(Math.floor(shi/5)+":"+fen+":"+miao); } if(miao==59){ miao=0; }else{ miao++; } if(miao==0){ if(fen==59 ...
今天整理资料发现了!还是以前写的,刚刚接触的jquery。和大家分享下思路 function Calendar(config){ config=config||{}; if((typeof config)!="object"){ return; } for(var p in config){ this[p]=config[p]; } this.datas=new Map(); //this.datasId="guestCalendar"; this.selectDay=null; this.selec ...
相关依赖的东西在博客中可以下载,大家给看看!我的思路对嘛? EasyJs.Panel=function(config){ EasyJs.Panel.superclass.constructor.call(this,config); } EasyJs.extend(EasyJs.Panel,EasyJs.Component,{ renderTo: document.body, initTool:function(panelHeader){ if(this.collapsible||this.minimizable||this.maximizable||this.cl ...
Global site tag (gtag.js) - Google Analytics