And using javascript jquery acquisition method of the class

1. The essential difference

It is a jquery javascript library. jquery javascript is a language-based framework is essentially javascript.

2. Differences code written

jquery greatly simplifies JavaScript programming. jquery javascript code for specific gravity lighter and more flexible. jquery design original intention is to reduce the use of code, to better perform more functions.

three. Different methods

(1) are loaded using javascript and jquery dom:

javascript executed only once, and jquery executed multiple times.

(2) obtaining a class method jquery and javascript:

javascript do not get the default method of the class, and can jquery ( 'call class. The class name) by $.

 

Extended Data

jquery language features

1. Quick access to document elements

jquery selection mechanism is based on css selector, it provides the ability to quickly find DOM elements in the document, and greatly enhanced the method of acquiring the page element in javascript.

2. The page offers beautiful dynamic effects

jquery built a series of animation, you can develop a very nice website. Many websites use jquery built-in effects, such as fade, element removal and other dynamic effects.

4. Creating Ajax without refreshing the page

Ajax is an acronym for Asynchronous JavaScript and ML, which can develop very sensitive and do not refresh the page. Especially in the development of server-side web page (such as php website), it needs to communicate back and forth with the server. If you do not use Ajax, each time data updates must refresh the page. After using Ajax effects, it can refresh the page locally and provide dynamic effects.

4. To provide enhanced language javascript

jquery JavaScript provides enhanced basic structure, for example, and the array element in the iteration process.

Guess you like

Origin www.cnblogs.com/blogst/p/10949715.html