Home  >  Article  >  Web Front-end  >  Summary of jQuery basic learning skills Page 1/4_jquery

Summary of jQuery basic learning skills Page 1/4_jquery

PHP中文网
PHP中文网Original
2016-05-16 19:12:441113browse

1. Introduction

1.1. Overview
With the rapid development and spread of WEB2.0 and ajax ideas on the Internet, some excellent Js frameworks have emerged one after another, among which the more famous ones are Prototype, YUI, jQuery, mootools, Bindows and domestic JSVM frameworks, etc., by applying these JS frameworks to our projects, programmers can be freed from designing and writing complex JS applications, and focus on functional requirements rather than implementation. details, thereby increasing the development speed of the project.

jQuery is another excellent Javascript framework after prototype. It was created by John Resig in early 2006 to help simplify JavaScript™ and Ajax programming. Some people use this metaphor to compare prototype and jQuery: prototype is like Java, and jQuery is like ruby. It is a simple, fast and flexible JavaScript framework that allows you to simply operate documents, handle events, and Implement special effects and add Ajax interaction to web pages.

It has the following characteristics:
1. The code is concise, the semantics are easy to understand, the learning is fast, and the documentation is rich.
2. jQuery is a lightweight script, and its code is very small. The latest version of the JavaScript package is only about 20K.
3. jQuery supports CSS1-CSS3, as well as basic xPath.
4. jQuery is cross-browser, and the browsers it supports include IE 6.0, FF 1.5, Safari 2.0, and Opera 9.0.
5. It is easy to extend other functions for jQuery.
6. JS code and HTML code can be completely separated, making it easier to code, maintain and modify.
7. Plug-ins are abundant. In addition to some special effects provided by jQuery itself, more functions can be implemented through plug-ins, such as form validation, tab navigation, drag-and-drop effects, table sorting, DataGrid, tree menu, image special effects and ajax. Upload etc.

The design of jQuery will change the way you write JavaScript code, reduce the complexity of learning to use JS to operate web pages, and improve the efficiency of web JS development. Whether you are a js beginner or a senior expert, jQuery will be yours First choice.
jQuery is suitable for designers, developers and those who are lucky, and is also suitable for commercial development. It can be said that jQuery is suitable for any JavaScript application and can be used in different web applications.
Official site: http://jquery.com/ Chinese site: http://jquery.org.cn/

1.2. Purpose
By studying this document, you can have a simple understanding of jQuery Understand the differences between JQuery and other JS frameworks, and master the common syntax, usage skills and precautions of jQuery.

2. How to use
Introduce the js file of JQuery into the page that needs to use JQuery.
For example:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn