我的jQuery源码读后感

    

    (function(window, undefined) {
        // 构造jQuery对象
        var jQuery = (function() {
            var jQuery = function(selector, context) {
                return new jQuery.fn.init(selector, context, rootjQuery);
            }
            return jQuery;
        })();

        // 工具方法 Utilities
        // 回调函数列表 Callbacks Object
        // 异步队列 Deferred Object
        // 浏览器功能测试 Support
        // 数据缓存 Data cache
        // 队列 Queue
        // 属性操作 Attributes
        // 事件系统 Event
        // 选择器 Sizzle
        // DOM遍历 DOM Traversing
        // DOM操作 Manipulation
        // 样式操作 Style
        // 异步请求 Ajax
        // 动画 Effects
        // 坐标

        window.jQuery = window.$ = jQuery;

    })(window);
        
    

 

posted @ 2014-06-14 17:39  砺能  阅读(166)  评论(0编辑  收藏  举报