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

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.

主站蜘蛛池模板: 柘荣县| 彰化县| 阿瓦提县| 乃东县| 涞水县| 新河县| 太湖县| 宜春市| 嘉荫县| 双城市| 囊谦县| 武定县| 织金县| 武威市| 错那县| 如皋市| 嘉义县| 山东省| 崇礼县| 桂东县| 务川| 南靖县| 东源县| 兴和县| 岳阳县| 贡觉县| 砀山县| 连平县| 黄平县| 丹阳市| 博白县| 鹰潭市| 山丹县| 陇川县| 体育| 闸北区| 临洮县| 银川市| 昌都县| 重庆市| 陆良县|