Start planning time to read the source code, the first section of the jquery framework reading ideas organized
(function(){jQuery = function(){}; jquery some variables and functions and add some methods and properties to the jquery objectThe implementation of Extend:jquery inheritance method jquery.extend(): Using jquery to extend some tool methods sizzle:jquery self-implemented complex selectors callbacks: callback function Deferred: Deferred object (Async) Support: feature detection (sniffing) data(): Data Cache Queue(): Queue methods are primarily used to perform sequential management attr()Prop()Val()AddClass()ET: Related methods of property manipulation on()Trigger()ET: DOM event action related methods, such as add delete get wrapper dom filter CSS(): Unified Style Operation Ajax(): Methods related to AJAX data manipulation animate(): Motion-related methods offset(): Methods for position and dimension related Operations Module:jquery core modularity-related Operations window.jquery = window.$ = JQueryexposing the interface for external use})();
- Since the analysis of the source code must first clarify the idea
- jquery source What I need to learn from the place
- What are the drawbacks and advantages of jquery?
- What I can reap
Take the above questions and start reading ...
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
jquery Source Framework Ideas