01. One point of the day jquery source code--Define function

Source: Internet
Author: User
Tags define function

(function(window,undefined) {varrootjquery, readylist, core_strundefined=typeofUndefined, location=window.location, document=window.document, Docelem=window.documentelement, _jquery=Window.jquery, _$=window.$, Class2type= {},    //it's useless.Core_deletedids =[], core_version= "2.0.3",    //Save A reference to some core methedsCore_concat =Core_deletedids.concat, Core_push=Core_deletedids.push, Core_slice=Core_deletedids.slice, Core_indexof=Core_deletedids.indexof, core_tostring=Class2type.hasownproperty, Core_trim=Core_version.trim,//defining the JQ functionJQuery =function(selector,context) {return NewJQuery.fn.init (selector,context,rootjquery); },//the regular is not right}) (window)/*———————————— parsing ————————————————————————————*//*Pass Window*/1/Faster 2/Parameter E replaces window (compressed version)/*Chuan undefined*/1/Prevent undefined from being modified/*Strict mode requires specification, otherwise it will error*/"Use Strict"/*Insufficient judgment (IE9 below)*/WINDOW.A==undefined/*Full compatibility judgment*/typeofWINDOW.A = =undefined/*how jquery objects are designed*/Jquery.fn=Jquery.prototype;functionJQuery () {return NewjQuery.prototype.init ();} JQuery.prototype.init=function() {}jquery.prototype.css=function() {}jquery.prototype.init.prototype=jquery.prototype;jquery (). css ();/*———————————————————————————————————————————————*/

01. One point of the day jquery source code--Define function

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.