摘要:
jquery核心 转自http://www.iteye.com/topic/783260(function( window, undefined ) { // 构造jQuery对象 var jQuery = function( selector, context ) { return new jQuery.fn.init( selector, context, rootjQuery ); } // 工具函数 Utilities // 异步队列 Deferred // 浏览器测试 Support // 数据缓存 Data // 队列 queue // 属性操作 Attribute // 事件处理 阅读全文
摘要:
上回说到了类的定义,prototype通过一个全局对象Class从形式上将函数和类区别开来。既然是类,那么就有抽象类,具体类,类的继承,同 时,类的成员可以有实例成员和静态成员。下面来看一下prototype是怎么做到这些的。(更多请关注:www.x2design.net)先看prototype中的以下的代码:var Abstract = new Object();Object.extend = function(destination, source) { for (property in source) { destination[property] = source[... 阅读全文