关于JQuery的系列文章请点击这里阅读 jquery is a new type of Javascript library. It is not a huge, bloated framework promising the best in AJAX - nor is it just a set of needlessly complex enhancements -
jquery is designed to change the way that you write Javascript.
jquery is a Javascript library that takes this motto to heart: Writing Javascript code should be fun. jquery achieves this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable.
What does jquery code look like? The quick and dirty:
$("p.surprise").addClass("ohmy").show("slow"); Congratulations! You just ran a snippet of jquery code - wasn't that easy? There's lots of example code throughout the documentation , on this site - be sure to give all the code a test run, to see what happens.
The above code snippet looks for all paragraphs that have a class of 'surprise', adds the class 'ohmy' to them, then slowly reveals them. Click the 'Run' button to see it in action!
Quick Facts Getting Started: » Download jQuery »
Download jQuery Compressed » Configure Your Download If you're new to jquery , we recommend that you check out the tutorials , look at some of the demos , then move on over to the documentation and start coding!
If you'd like to keep up-to-date with jquery , and see some more code examples, then you should read the jQuery Blog and check out the jQuery Mailing List .
Advanced: If you're feeling adventurous, you may take a peek at the full source code , or look into the jQuery Development Process .
附一张小图: