什么是jquery
jQuery is nothing but a JavaScript library. What makes it special is the things you can do easily using jQuery that earlier seems to be hard and time taking using JavaScript. Current jQuery version is 1.8.3 and its size is only 32KB and it comes as a single downloadable javascript file.
jQuery只是一个JavaScript库。 令它与众不同的是,您可以使用jQuery轻松地完成一些事情,而以前使用JavaScript似乎很困难并且很费时间。 当前的jQuery版本为1.8.3,大小仅为32KB,它是一个可下载的javascript文件。
什么是jQuery? (What is jQuery?)
“Write less, Do More” – jQuery punch line says it all. It’s a fast and concise library that you can use for HTML document traversing, event handling, animating and Ajax interactions. It makes web development fast and easy.
“ 少写,多做 ” – jQuery的妙语就这样。 它是一个快速简洁的库,可用于HTML文档遍历,事件处理,动画和Ajax交互。 它使Web开发变得轻松快捷。
为什么要使用jQuery? (Why use jQuery?)
Obviously whatever you can do from jQuery is certainly doable in JavaScript also but jQuery provides easy to use functions to create rich web applications easily. These functions are easy to learn and make you master in web development. Being a JavaScript, it can be used with almost all web application programming languages like JSP, Servlets, PHP etc.
显然,您可以从jQuery执行的任何操作在JavaScript中当然也是可行的,但是jQuery提供了易于使用的功能来轻松创建富Web应用程序。 这些功能易于学习,可让您精通Web开发。 作为一种JavaScript,它几乎可以与所有Web应用程序编程语言(如JSP,Servlet,PHP等)一起使用。
All these features make it very popular and that’s why it’s a hot technology to learn among web application developers. It has become the industry standard to use jQuery to create rich web applications and almost all the major web application companies like Google, Yahoo, Digg, WordPress, Drupal use it somewhere in their applications.
所有这些功能使其非常受欢迎,这就是为什么它成为Web应用程序开发人员中学习的热门技术。 使用jQuery创建丰富的Web应用程序已成为行业标准,几乎所有主要的Web应用程序公司(如Google,Yahoo,Digg,WordPress,Drupal)都在其应用程序中使用它。
jQuery的功能 (Features of jQuery)
- DOM element selectors DOM元素选择器
- DOM traversal and modification DOM遍历和修改
- Event handling, for example Browser events, Mouse events, Form events 事件处理,例如浏览器事件,鼠标事件,表单事件
- CSS manipulation CSS操作
- Effects and animations 效果和动画
- Ajax integration Ajax整合
- Extensibility 可扩展性
- Utilities 实用工具
- JavaScript Plugins JavaScript插件
We will explore all the features of jQuery in future posts that will help you in mastering jQuery.
我们将在以后的文章中探索jQuery的所有功能,这些功能将帮助您精通jQuery。
什么是jquery