总结了Ext, base2, mootools,自己写了一个Class机制》的相关内容

让你在JavaScript的方法中调用Super

jQuery作者John Resig提出了他的继承方案,让人眼前一亮的是能够支持类似Super的关键字调用父类方法。 由于比较习惯YUI/EXT继承方式,同时也了解这种方式的不足,看到John的方案,很想跃然一试, 但见其代码之复杂,思路之繁复,恐怕不能兼效率之(ext中多达7~8层的继承),抱着FUD的心态,望诸君评论之。 1. // Inspired by base2 and Pro ...
by sp42 2008-06-08 浏览 (356) 回复 (0) 关键字:

John Resig 关于JavaScript Inheritance 的描述

原文地址:http://ejohn.org/blog/simple-javascript-inheritance/ Simple JavaScript Inheritance I've been doing a lot of work, lately, with JavaScript inheritance - namely for my work-in-progress JavaScript ...
by ecsun 2008-04-03 浏览 (1362) 回复 (0) 关键字:

JavaScript“类”继承的横向比较

首入眼帘,代码: YUI 2.5.2 /** * Utility to set up the prototype, constructor and superclass properties to * support an inheritance strategy that can chain constructors and methods. * St ...
by sp42 2008-06-07 浏览 (413) 回复 (0) 关键字:

John Resig 关于JavaScript Inheritance 的描述

原文地址:http://ejohn.org/blog/simple-javascript-inheritance/ Simple JavaScript Inheritance I've been doing a lot of work, lately, with JavaScript inheritance - namely for my work-in-progress JavaScript ...
by ecsun 2008-04-03 浏览 (425) 回复 (0) 关键字:

ext2.0 grid columnModel 动态增加列怎么实现,各位大侠看看啊!

本人由于项目时间紧,恳请知道的高手说下啊!
by chenbiao 2008-07-15 浏览 (979) 回复 (3)

完全模拟IE的模态窗口代码(必须使用Ext2.1框架)

把以下代码复制到你的公用js库中: var ModalDialogWindow = function() {     this.constructor();     this.window = Ext.extend(Ext.Window,{         closea ...
by alrece 2008-06-18 浏览 (394) 回复 (1)

[转贴]你的编程语言可以这样做吗

英文原版在:http://www.joelonsoftware.com/items/2006/08/01.html http://jstang.5d6d.com/thread-185-1-1.html 一篇很好的关于map/reduce的示范文章。看了这个,你就会理解prototype.js中Enumerable的精髓。 通过它,你可以写出很多非常奇特非常美妙的代码。短短几行,功能可不简单哦 ...
by sp42 2007-06-18 浏览 (1134) 回复 (2)

彻底被Extjs类的继承打败,大侠来save我吧

代码如下 //父类定义 BaseClass = function(){ // //begin this.cry = function(){//this.不能丢 alert("this.cry ...."); } //end return { cry: function(){ ...
by erichua 2008-08-23 浏览 (352) 回复 (6)

模板中的variadic 参数类型自动推导的问题

如下面代码中,没有调用模板时,编译能通过 template test(T, R) { void test(T t, R r...) { foreach(v; r) Stdout(v).newline; } } 如果这样调用: test("a", "b","C"); 编译时就会出错,说参数个数不一致。 而用这样 ...
by tuja 2007-09-30 浏览 (282) 回复 (3)

推荐Steve Yegge:Rhino on Rails在服务器端JVM中运行JavaScript

Steve Yegge在google I/O大会上发表了演讲:Rhino on Rails -- Server-side JavaScript on the Java Virtual Machine。 使用Rhino能够用JavaScript完成Java在server端完成的所有工作! 什么是Rhino? 1。用JavaScript实现Java JavaScript implemente ...
by QQbyte 2008-06-17 浏览 (1350) 回复 (12) 关键字:

基于JavaScript的代码自动生成工具

JavaScript Based Code Generator - codegen 工具主页http://sourceforge.net/projects/jbcgen/目的快速生成程序代码, 比如Struts, Spring, Jdbc/Hibernate所有前后台的代码.简单介绍本工具生成代码的思想是读取数据库中表的结构, 使用JavaScript作为脚本语言编写模板, 生成各种代码或者文件, ...
by jejwe 2008-03-06 浏览 (3651) 回复 (2) 关键字:

超酷的js:永不停止的分形地毯之旅

用简单的js就写了一个超酷的永不停止的分形地毯之旅,很强。 // chain( func ) // make func chainable by making it return itsReturnValue||this function chain( func ) { return function() { ...
by QQbyte 2008-06-19 浏览 (2880) 回复 (7) 关键字:

相关问答

赞助商链接