和coco2dx学到的,John Resing大神的extend,应该是在最新的jQuery里用了的,那么继续继承jQuery对象安全js插件系统的实现var excludeiframe=/iframe/;var jQuerySafe=jQuery.extend(jQuery,{this.SafeI...
分类:
Web程序 时间:
2014-10-04 23:03:27
阅读次数:
283
众所周知,firefox下的element除了有tab线的,其他没有焦点这个概念(你可以给一般元素加tabindex属性使得它有焦点).那没有,为什么不自己做一个.测试已通过,注释直接英文写的,本人练习英语中,加上这段自制的脚本,可以直接修复firefox下的onblur问题(其实你也可以加入获得f...
分类:
其他好文 时间:
2014-10-04 22:41:17
阅读次数:
294
javascript 的join("")方法,把数组变成统一字符串,用来写长的参数字符串 function m(a) { var b = ["", "", e ? "": "", "", "", "", "", "", "", "", n(a), "", "", k(a), "", "&q
分类:
编程语言 时间:
2014-10-04 22:27:57
阅读次数:
243
Chapter 19 Subclassing UITableViewCell1. iOS provides a convenient suite of functions to create offscreen contexts and produce images from them. To cr...
分类:
其他好文 时间:
2014-10-04 22:21:17
阅读次数:
208
//建立一个Car类.h文件#import interface Car : NSObject{ @public int wheels;}- (instancetype)init;- (void)runWithSpeed :(int) speed AndDirection : (int...
分类:
其他好文 时间:
2014-10-04 21:32:57
阅读次数:
181
使用类之前使用关键字type来声明一个类如type A = class i,j,k:integer; procedure setA(a,b,c:integer); function gerA():integer;end;这里已经定义了一个类,现在我们来使用类在使用类之前,我们先必须给下面2行...
分类:
其他好文 时间:
2014-10-04 21:02:47
阅读次数:
134
_run(); $notecomputer->_run2();*//*interface 成员字段必须是常量 接口方法必须是抽象方法~ 并且不能写abstract 子类继承接口的说法,叫做实现, 可以多实现*/ interface Computer { c...
分类:
其他好文 时间:
2014-10-04 19:09:27
阅读次数:
179
js创建类的方式有几种,大致如下:1,构造函数方式: function Car(parameters) { this.name = "objectboy"; } var cat1 = new Car(); console.log(ca...
分类:
Web程序 时间:
2014-10-04 19:04:27
阅读次数:
274
defbz(self):self.lable1=QtGui.QLabel(u'帮助说明'u'联系专区'u'另类高级说明'u'本地文档说明(是为未连接internet用户准备的)')self.lable1.setWindowTitle(u'帮助与支持')self.lable1.resize(100,1...
分类:
其他好文 时间:
2014-10-04 16:54:46
阅读次数:
177
这里是一篇介绍整个Project的结构及其相应的Function的文章。 整个Project采用MVC Framework理念,包含Models, Views 和Controllers. 项目框架描述: --Core: 核心层,实现Business logic services和数据交...
分类:
其他好文 时间:
2014-10-04 14:47:16
阅读次数:
153