JavaScript和jQuery有什么区别? [英] What is the difference between JavaScript and jQuery?

查看:138
本文介绍了JavaScript和jQuery有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JavaScript和jQuery之间的主要区别是什么。我知道像jQuery这样的细微差别是高性能更可靠。

What is the main difference between JavaScript and jQuery. I know the minor difference like jQuery is high performance more reliable.

推荐答案

jQuery是JavaScript库。

jQuery is JavaScript library.

阅读

wiki-jQuery github jQuery与javascript?



来源

什么是JQuery?


之前JQuery,开发人员会创建自己的小框架
(代码组),这将允许所有开发人员解决所有
的错误并给他们更多时间来处理功能,所以
JavaScript框架诞生了。然后是协作阶段,
开发人员组而不是编写他们自己的代码将免费赠送
并创建每个人都可以使用
的JavaScript代码集。这就是JQuery,一个JavaScript代码库。解释JQuery及其使命的最佳
方式在JQuery网站的首页
中有明确说明:

Before JQuery, developers would create their own small frameworks (the group of code) this would allow all the developers to work around all the bugs and give them more time to work on features, so the JavaScript frameworks were born. Then came the collaboration stage, groups of developers instead of writing their own code would give it away for free and creating JavaScript code sets that everyone could use. That is what JQuery is, a library of JavaScript code. The best way to explain JQuery and its mission is well stated on the front page of the JQuery website which says:

JQuery是一个快速的简洁的JavaScript库,简化HTML
文档遍历,事件处理,动画和Ajax交互
,用于快速Web开发。

JQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.

正如您所见所有JQuery都是JavaScript。有一个以上的
类型的JavaScript代码集,比如MooTools,它只是
JQuery是最受欢迎的。

As you can see all JQuery is JavaScript. There is more than one type of JavaScript set of code sets like MooTools it is just that JQuery is the most popular.



JavaScript vs JQuery


JavaScript vs JQuery


哪个是最好的JavaScript或JQuery是一个有争议的讨论,
真的答案是最好的。他们都有自己的角色I
曾经在线应用程序上工作,其中JQuery不是正确的工具
以及应用程序需要的是直接的JavaScript开发。
但是对于大多数网站来说,只需要JQuery。 Web
开发人员需要做的是做出明智的决定,确定哪些工具最适合他们的客户。首先进入Web开发的人确实只需要使用JQuery就可以接受这两种技术:
不会教导JavaScript的细微差别以及它如何影响DOM。
使用JavaScript一直都会减慢项目速度,因为
JQuery库解决了JavaScript在每个Web浏览器之间存在的大部分问题,它使得部署安全,因为它是
肯定适用于所有平台。



JavaScript是一种语言。 jQuery是一个用JavaScript构建的库,用于帮助正在执行常见Web任务的JavaScript程序员。

Which is the best JavaScript or JQuery is a contentious discussion, really the answer is neither is best. They both have their roles I have worked on online applications where JQuery was not the right tool and what the application needed was straight JavaScript development. But for most websites JQuery is all that is needed. What a web developer needs to do is make an informed decision on what tools are best for their client. Someone first coming into web development does need some exposure to both technologies just using JQuery all the time does not teach the nuances of JavaScript and how it affects the DOM. Using JavaScript all the time slows projects down and because of the JQuery library has ironed most of the issues that JavaScript will have between each web browser it makes the deployment safe as it is sure to work across all platforms.


JavaScript is a language. jQuery is a library built with JavaScript to help JavaScript programmers who are doing common web tasks.

参见

这篇关于JavaScript和jQuery有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆