Six. jquery prototype properties and methods for source code analysis

Source: Internet
Author: User

Jquery.fn = Jquery.prototype = {        98Constructor:jquery,Init:function(selector, context, rootjquery) {},Selector: "",                213 jquery: "1.7.2",                216 length:0,                219 Size:function() {},        223 ToArray:function() {},                229 Get:function(num) {},241 Pushstack:function(elems, name, selector) {},Each:function(callback, args) {},274 Ready:function(FN) {},284 eq:function(i) {},291 First:function() {},        295 Last:function() { },        299 Slice:function() {},        304 Map:function(callback) {},310 End:function() { },               316Push:push,317sort: [].sort,318splice: [].splice};


selector: selector for recording the init parameter. But not necessarily equal.
$ ("div"). selector;//"Div"
$ ("div"). Find (P). selecctor;//"Div p";

jquery:jquery version number.
length: the number of elements.
size (): The memory equivalent of length,length is less expensive.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.