In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about jQuery as a JavaScript library MVP what are 12 reasons, the editor feels very practical, so share with you to learn, I hope you can learn something after reading this article, say no more, follow the editor to have a look.
JQuery emphasizes the idea of writing less and doing more (write less, do more). Its unique selector, chained DOM operation mode, event binding mechanism and well-packaged Ajax are unmatched by other JavaScript libraries.
(1) lightweight. JQuery is very lightweight, using Dean Edwards's Packer (after http://dean.edwards.name/packer/) compression, it is less than the size of 30KB, if gzip compression is enabled on the server side, it is even the size of 16KB!
(2) powerful selector. JQuery allows operators to use almost all selectors from CSS 1 to CSS 3, as well as jQuery*** 's advanced and complex selectors. If you want, you can also add plug-ins to support XPath selectors! We will explain the powerful selectors in jQuery in detail in the next chapter.
(3) excellent encapsulation of DOM operation. JQuery encapsulates a large number of commonly used DOM operations, so that you can write procedures related to DOM operations handy, elegantly complete a variety of very complex operations, so that JavaScript novices can also write excellent programs. The third chapter will focus on the elegant DOM operation in jQuery.
(4) reliable event handling mechanism. JQuery's event handling mechanism absorbs the quintessence of event handling functions written by JavaScript expert Dean Edwards, which makes jQuery quite reliable when dealing with event binding. JQuery has also done a very good job of reserving graceful degradation. Chapter 4 will focus on event handling in jQuery.
(5) perfect Ajax. JQuery encapsulates all Ajax operations in a function $.ajax, allowing us to focus on business logic when dealing with Ajax without worrying about complex browser compatibility and the creation and use of XMLHttpRequest objects. Chapter 6 will focus on Ajax processing in jQuery.
(6) it does not pollute the * variables. JQuery creates only one object called jQuery, and all its methods are under this object. Another alias, $, can also hand over control at any time. It will never pollute other objects!
7) excellent browser compatibility. As a popular JavaScript library, browser compatibility is naturally one of the necessary conditions. JQuery can operate normally under IE 6.0 +, FF 2 +, Safari 2.0 + and Opera 9.0 +. At the same time, some browser differences have been fixed. So you don't have to worry about building a browser compatibility library before you start the project.
(8) chain operation mode. The most distinctive feature of jQuery is its chained operation, that is, it can be written directly to a set of actions that occur on the same jQuery object without having to get the object repeatedly. This makes the jQuery code extremely elegant. Note that in Section 1.3.3, we will discuss the corresponding code style.
(9) the separation of behavior layer and structure layer. Instead of calling events in html, developers directly use the jQuery selector to select the element and then add events directly to the element.
(10) rich plug-in support. The growth of anything can never be developed without the support of many people. The extensibility of jQuery attracts developers from all over the world to co-write jQuery extensions. There are more than hundreds of official plug-ins available. In Chapter 7, we will introduce several popular plug-ins and guide you to write your own plug-ins.
(11) perfect documentation. The documents of jQuery are very rich. At the present stage, most of them are English documents, but there are few Chinese documents. Of course, many jQuery-loving teams are working on this.
(12) Open source JQuery is an open source product that anyone can use freely.
These are the top 12 reasons why jQuery is used as a JavaScript library MVP. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.