官术网_书友最值得收藏!

What is jQuery?

jQuery is a JavaScript library. This means that it's a collection of reusable JavaScript code that accomplishes common tasks. Since web developers often find themselves solving the same problems over and over again, it makes sense to collect useful bits of code into a single package that can be included and used in any project. The creators of jQuery have written code to smoothly and easily handle the most common and most tedious tasks we want to accomplish with JavaScript, and they've ironed out all the little differences that need to be worked out to get the code working in different browsers.

It's important to remember that jQuery is JavaScript, not a language of its own. It has all the same rules and is written the same way as JavaScript. Don't let this frighten you away—jQuery really does make writing JavaScript much easier.

jQuery's official tagline is "write less, do more." This is an excellent and accurate description of the jQuery library—you can really accomplish amazing things in just a few lines of code. My own unofficial tagline for jQuery is "find stuff and do stuff to it", because finding and manipulating different parts of an HTML document is extremely tedious with raw JavaScript and requires lines and lines of code, while jQuery makes that same task painless and quick. Thanks to jQuery, you can not only quickly create a drop-down menu but you can also create one that's animated and works smoothly in many different browsers.

主站蜘蛛池模板: 于都县| 宁德市| 桂东县| 桂阳县| 大厂| 岫岩| 南投市| 太和县| 福建省| 中牟县| 马山县| 宜宾市| 西吉县| 湾仔区| 会泽县| 宜宾市| 伊春市| 朝阳县| 健康| 遵义县| 崇左市| 怀远县| 邢台县| 辽中县| 维西| 南澳县| 吉木乃县| 永仁县| 无为县| 梁河县| 苏州市| 江华| 章丘市| 沐川县| 南涧| 长汀县| 津市市| 运城市| 玉龙| 克什克腾旗| 宁强县|