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

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.

主站蜘蛛池模板: 莱西市| 喀什市| 长岭县| 盘山县| 翁源县| 磐石市| 崇信县| 巴彦淖尔市| 东丽区| 桃园市| 乐业县| 永顺县| 怀来县| 松江区| 辽阳市| 乌兰浩特市| 航空| 承德市| 高陵县| 神农架林区| 承德县| 韶山市| 廊坊市| 奎屯市| 定州市| 凌海市| 灵山县| 屯昌县| 营口市| 柞水县| 东丽区| 南平市| 卢氏县| 无为县| 怀安县| 霸州市| 镇坪县| 车致| 桐城市| 广德县| 永城市|