自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 问答 (5)
  • 收藏
  • 关注

原创 DateRangeBox

[img]http://dl2.iteye.com/upload/attachment/0093/8068/49e1f903-dfb2-3207-a263-3d7db357c35a.jpg[/img][img]http://dl2.iteye.com/upload/attachment/0093/8070/1339db07-b959-37e8-9c5b-eb2785612097.jpg...

2014-02-12 21:35:23 156

原创 tools

[code="ruby"]#coffeescriptisIE = /msie/i.test(navigator.userAgent)traverseChildren = (elem)-> pushAll = (elemArray) -> q.push item for item in elemArray children = []; q = ...

2014-01-22 18:55:48 96

原创 Animate

[code="ruby"]#coffeescriptclass Animate constructor:(options={})-> @options = options options.duration = options.duration or 300 self = this self.easing = swing: (p, ...

2014-01-22 18:53:32 140

原创 几个小正则

[code="js"]//url解析var url = 'http://weibo.com/u/1130985012/home?wvr=5#123456';var re = /^(?:([a-zA-z]+):)?(\/{0,3})([0-9.\-a-zA-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/;var res...

2014-01-22 11:48:41 108

原创 [jquery插件]金额及银行卡号格式化

[img]http://dl2.iteye.com/upload/attachment/0087/0055/18da983f-7868-3fe6-b21f-17efbbfe92bd.jpg[/img]示例:[code="html"] Document $(function(){ $('#account').inputFormat(...

2013-07-16 15:54:48 169

原创 山寨表格组件

[img]http://dl.iteye.com/upload/attachment/0068/4636/fdd94889-211c-3dc0-94e4-3ee543154282.jpg[/img]

2012-05-22 11:16:48 89

原创 [jquery plugin]http轮询

[code="js"]/** * @author 全冠清 */(function($){ var methods = { init: function(opts){ if(!$(window).data('register_messageline')){ $(window).data('register_messageline'...

2012-05-22 11:07:07 75

原创 [jquery plugin]自制土日历(可为日期添加标签)

[img]http://dl.iteye.com/upload/attachment/0068/4625/ca3d2b44-8581-3ae0-a684-014740802802.jpg[/img]

2012-05-22 11:02:57 95

javascript惯用法

数值[code="js"]/** * 转换&取整 */-45.67890^0 //-45-45.67890|0 //-45 ~~5645.1132 //5645'-45.67890'^0 //-45'-45.67890'|0 //-45 ~~'5645.1132' //5645/** *金额处理 */Number.prototype.fixM...

2012-03-08 01:16:36 83

原创 与小人相处

工作中小人作风的同事是阻碍你成功的暗礁,如果你不能事先发现这些暗礁并及时避开它们,那么你的事业之舟很可能会触礁,轻则抛锚、搁浅,重则被撞翻、撞沉。所以,和这种小人作风的同事搞好关系十分重要。  现实生活中处处都存在“小人”,如果不处理好与“小人”之间的关系,那么你就会吃亏,你的事业的发展就会受到阻碍。也许有人会问:那么究竟“小人”都是什么样的呢?应该怎样与他们相处呢?...

2011-03-30 13:43:24 114

简单的jquery语音拨号插件

由于太简单了。。这里就没啥好写的了见附件

2011-03-15 15:54:19 99

原创 jquery获取(设置)文本框(块)内光标位置插件v2

[code="javascript"]/** * @author 全冠清 */$.fn.extend({ position:function( value ){ var elem = this[0]; if (elem&&(elem.tagName=="TEXTAREA"||elem.type.toLowerCase()=="text")) { if...

2011-03-07 19:58:34 107

用python找出最近修改的文件

上线时几个人同时过上百个文件,这时就需要列出修改过文件的列表手工记录几乎不可能,这时可以用文件最后修改时间和开始修改时的时间做比较,这时就可以对比出列表[code="python"]import os,os.path,re,timefilelist=[]path = 'F:\hbtv't=time.strptime("2010-09-15 00:00:00", "%...

2010-09-17 19:26:01 613

pythonchallenge答案

测试关[code="python"]2

2010-08-06 00:06:32 131

原创 jquery表格排序

jq sort $.fn.sort=function(fun){ var d=this var dom=this.find('tr:gt(0)') dom.each(function(i){ ...

2010-01-04 11:51:48 77

修正jQuery plugin: Autocomplete最小长度问题

插件地址:[url]http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/[/url]设置参数minChars有明显问题,只能是0和1修改原文第564行[code="js"]var i = q.length -1[/code]变为[code="js"]var i = q.length [/code]...

2009-11-20 11:34:59 356

原创 台词们

当幸福来敲门[quote]Chris Gardner:You have a dream, you got to protect it.  克里斯·加德纳:如果你有梦想,就要守护它。  Chris Gardner:People can't do something by themselves; they wanna tell you you can not do it....

2009-09-03 16:13:36 138

jquery获取(设置)文本框(块)内光标位置插件

[code="js"]/** * @author 全冠清 */$.fn.extend({ position:function( value ){ var elem = this[0]; if (elem&&(elem.tagName=="TEXTAREA"||elem.type.toLowerCase()=="text")) { if($.brows...

2009-08-03 12:14:10 365

原创 节选一段编辑手记,原文叫《被认真对待的感觉》,作者:张立宪

   遗憾的是,还是继续接到一些稿子,给我一种没被认真对待的感觉。作者总是摆出一种随手写写的姿态,一种满不在乎漫不经心的态度。   如果搁以前,我会认为这是一种洒脱,一种超脱。现在,我不会这么想了,说刻薄一些,这是一种不自信的表现。正如我们见到一些张狂嚣张的人,是在掩饰心里的紧张与自卑;而内心力量越强大的人,表现出来的往往却是谦卑、严谨。   一些人不认真,是因为他不敢认真,他怕自己的...

2009-07-28 16:57:08 267

求两个字符串是最大公共子串的javascript实现

[code="javascript"] function test2(a,b){ var result="" for(i=0;iL2){var s3=s1;s1=s2,s2=s3,L1=s2.length;} for(var j=L1;j>0;j--) for(var i=0;i=0) return sstr; } ret...

2009-07-01 00:25:40 247

原创 解决currentStyle不兼容问题

[code="javascript"]var CurrentStyle = function(element){return element.currentStyle || document.defaultView.getComputedStyle(element, null);};[/code]

2009-06-09 20:39:59 751

js实现ruby中array的include?

[code="javascript"] Array.prototype.include=function(item){ for(var i=0;i

2009-05-15 17:32:20 232

原创 JS克隆

[code="js"]Object.prototype.Clone = function(){ var objClone; if (this.constructor == Object){ objClone = new this.constructor(); }else{ objClone = new this.constru...

2009-04-23 16:40:04 56

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除