I want to know
How JQuery assign function name to $ ?
I want to know How JQuery assign function name to $ ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is done at line
9384of the uncompressed library (see http://code.jquery.com/jquery-1.7.2.js)where
jQueryon the right side of this assignment is the function-scoped reference (starting at line22): of course you could create your favourite shortcut (e.g._) doing something likeafter you’ve loaded the library, so you can use
_instead of$orjQuery.If you asked this because you have loaded some other libraries and you have a conflict with the
$reference, just take a look atjQuery.noConflict()method