Jquery learning notes 1-jquery overall code framework, jquery1-jquery
I recorded my notes in my blog for the first time. I hope I can stick to it. Come on!
Today I learned the source code of Jquery. I downloaded it from the official website and used the DW (dream waver) editor to open Js (the uncompressed version is downloaded). The version is 2.0.3. After the first release, I kneel down to more than 8000 lines of code. It is indeed the most common I have seen since I started to contact the front-end development ), first, analyze the entire source code according to the old learning routine, and list the code framework (you can also go to Netease cloud class to find related videos, the following content is derived from the video "analyzing the mysteries of Jquery source code line by line "):
The preceding content needs to be explained. The content of the brackets indicates the number of lines in the Code. The numbers in the brackets indicate the beginning and end of a function.
Ps: The comments contain numbers similar to #1234. You can view the details of these numbers on the official website.