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

关于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.

What is jquery?

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
Choose Your Desired Components:
  • jQuery Base (Required)
    This is the core of jquery, it includes much of the default functionality and selecting capabilities. Has full support for CSS 1-3 and basic XPath.
  • Basic Animations
    This package includes the ability to animate hiding/showing elements along with having elements 'slide' in and out of view.
  • Advanced Events
    This package adds a number of helper functions, such as 'click', '', and 'oneclick'. Additionally, it includes the 'hover' and 'ready' events, which are very useful.
  • Basic AJAX
    This package adds the ability to dynamically load HTML files into your current document.


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.

附一张小图:


所属分类:技术手册标签:AjaxJavascript jQuer 吕 @ 2006年10月27日9点32分 AM 编辑 jQuery阅读(1890) 评论(0)

相关文章

评论

还没有评论
未开放评论

谷歌中jQuery相关文章

数据加载中,请稍候……