首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

jQuery源码解读二 - 整体架构

2012-08-31 
jQuery源码解读2 - 整体架构1,整体使用了一个匿名函数作为jQuery的命名空间,代码如下:jQuery.fn jQuery.

jQuery源码解读2 - 整体架构
1,整体使用了一个匿名函数作为jQuery的命名空间,代码如下:

    jQuery.fn = jQuery.prototype = {}  

  将jQuery.fn又指向jQuery.prototype
 
  最终,使用jQuery("div")调用的函数是第102行代码

热点排行