开发者

Is jQuery a client-side or a server-side JavaScript library?

Is jQuery a client-side or a server-side J开发者_JS百科avaScript library?


Jquery is a client side library used for:

  • Traversing the DOM: Selecting every other paragraph, or getting all the child elements inside a list, for example.
  • Manipulating the DOM: Wrapping every link in a div tag, changing all tables to red.
  • Ajax: Sending requests to the server and retrieving and displaying the response the server sends back, without refreshing the whole page.
  • Animation: Fade in, Slide Up, grow, shrink, move, etc.
  • Browser normalization: Make all browsers behave the same way with the same jquery code.


jQuery is a client side framework that mostly caters toward DOM manipulation and abstracts many DOM methods so you can save lots of typing.

DOM:

var as = document.getElementsByTagName('a');

jQuery:

$('a')

It also solves a lot of browser discrepancies so you have more time for rapid development and not have to worry about low-level inconsistencies.


jQuery is a client-side Javascript Framework which you can include in your HTML code using the <script src="scripts/jquery.js"></script> tag.


It's a JavaScript framework that abstracts many complex tasks into well tested methods that are wrapped in the jQuery function.


jQuery is client side


client side. and it's very nice. It allows you to modify the DOM tree very efficiently and without hassle. Also, there are a lot of plugin libraries, allowing you to add new widgets and high-level functionality to the library in no time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜