上一页 1 ··· 6 7 8 9 10
摘要: 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 // 事件处理 阅读全文
posted @ 2012-01-12 10:56 Anjey 阅读(1200) 评论(0) 推荐(2) 编辑
摘要: 上回说到了类的定义,prototype通过一个全局对象Class从形式上将函数和类区别开来。既然是类,那么就有抽象类,具体类,类的继承,同 时,类的成员可以有实例成员和静态成员。下面来看一下prototype是怎么做到这些的。(更多请关注:www.x2design.net)先看prototype中的以下的代码:var Abstract = new Object();Object.extend = function(destination, source) { for (property in source) { destination[property] = source[... 阅读全文
posted @ 2012-01-11 17:59 Anjey 阅读(3127) 评论(0) 推荐(1) 编辑
上一页 1 ··· 6 7 8 9 10