function isArrayLike(obj) { // Support: real iOS 8.2 only (not reproducible in simulator) // `in` check used to prevent JIT error (gh-2145) // hasOwn isn't used here due to false negatives // regarding Nodelist length in IE var length = !!obj && "length" in obj && obj.length, type = jQuery.type(obj); if (type === "function" || jQuery.isWindow(obj)) { return false; } return type === "array" || length === 0 || typeof length === "number" && length > 0 && (length - 1) in obj; }
总结这篇算是承上启下吧,介绍了 jQuery 中比较重要的入口函数,然后估计下章将会讲解 Sizzle,jQuery 中的选择器。
参考
jQuery 2.0.3 源码分析core - 选择器
Node.nodeType
jQuery 3.0的buildFragment