/*
17:10 2019/8/6
@author zhangxingshuo
jQuery:"write less, do more" homepage: https://jquery.com/
jquery-1.12.4.js-|
jquery-2.2.4.js--|- from jQuery CDN: https://code.jquery.com/
jquery-3.4.1.js--|
┌ ┬ ┐
├ ┼ ┤
└ ┴ ┘ search for "length" and "size()" in three files, the results are as follow:
1.12.4 2.2.4 3.4.1
length true true true
size() true true false for more details:
in jquery1.12.4
101-102行:
*/ // The default length of a jQuery object is 0
length: 0,
/*
10949-10952行:
*/
// The number of elements contained in the matched element set
jQuery.fn.size = function() {
return this.length;
};
/*
jquery2.2.4
101-102行:
*/ // The default length of a jQuery object is 0
length: 0,
/*
9755-9757行:
*/
size: function() {
return this.length;
} /*
jquery3.4.1中
166-167行:
*/
// The default length of a jQuery object is 0
length: 0,

最新文章

  1. LinqToDB 源码分析——处理表达式树
  2. 【读书笔记】2016.12.10 《构建高性能Web站点》
  3. url.py中的配置问题
  4. Silverlight打印注意事项
  5. [转] 小tips: 使用 等空格实现最小成本中文对齐 ---张鑫旭
  6. Android的BUG(一) - HTML 5 播放streaming video造成卡住的问题
  7. Linux 安装之U盘引导
  8. 五、pig学习
  9. C++学习的心路历程之心理障碍
  10. 一个想法照进现实-《IT连》创业项目:万事开头难
  11. 微信小程序入门
  12. 大话python面向对象
  13. 怎么知道我的laravel 是几版本的
  14. nodejs安装及故障解决
  15. linux内核中的C语言常规算法(前提:你的编译器要支持typeof和type)
  16. kali中的postgres怎么连接
  17. linux利用命令将一个盘上的所有复制到另一个盘上
  18. POJ1159
  19. 分享一个MAC下绕开百度网盘限速下载的方法,三步操作永久生效
  20. 奶牛易物小组 Alpha冲刺

热门文章

  1. omniplan
  2. 剑指XX游戏(六) - 轻松搞定面试中的红黑树问题
  3. "并发用户数量"的正确英文表示
  4. rabbiit报错处理
  5. MySQL使用order by field()自定义排序
  6. jQuery页面加载完毕事件及jQuery与JavaScript的比较
  7. Python Deque 模块使用详解,python中yield的用法详解
  8. 用Tcpdump抓包
  9. JavaScript面向对象当中的几个概念
  10. python-Web-django-qq扫码登陆