哪一个更好用...? Jquery或AngularJS ......? [英] Which one is better to use...? Jquery or AngularJS...?

查看:62
本文介绍了哪一个更好用...? Jquery或AngularJS ......?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿朋友们,我是jquery的新手,不久前我开始了解新的前端语言,即AngularJS。我只是想知道哪一个更好地实现,即哪一个可以让我少写和做更多,哪一个有更多的功能,哪一个将消耗更少的时间执行,哪一个被大多数人使用jquery或AngularJS ...?

Hey friends, I'm new to jquery, sometime ago I got to know about new Front End Language i.e. AngularJS. I just want to know which one is better to implement i.e. which one will enable me to write less and do more, which 1 is having more functionality, which 1 will consume less time to execute and which 1 is used by most of the people jquery or AngularJS...?

推荐答案

请参阅我对该问题的评论。由于我试图解释的原因,它似乎不正确。我不认为你可以普遍定义一个谓词更好。更好的是什么?



所以,我只会给你几个问题。首先,仔细阅读并尝试掌握这些想法:

http://en.wikipedia.org/wiki / JQuery [ ^ ],

http://en.wikipedia.org/wiki/AngularJS [ ^ ]。



这就是我的想法是最重要的:尽管产品重量轻,但它们的理念却截然不同。 jQuery更像是一个库。 AngularJS更像是一个框架:它基于MVC,这是一种架构模式

http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller [ ^ ]。



也就是说,你必须适应你的应用程序甚至是你对AngularJS的思考方式。它对你有用,特别是如果你自己的想法需要更多的纪律和更少的领导,并且如果你需要学习架构,例如。与此形成鲜明对比的是,jQuery可以适应任何事物。您需要选择最适合您的套房。我的任何考虑都不能用于一种或另一种方式的宣传。显然,影响最大的因素是项目的目标和特征。它可能适合一个模型或另一个模型,或两者兼而有之。当然,在大多数情况下,执行时间更短根本不是一个因素。这一切都发生在客户端,很少是性能瓶颈。



当然你不应该看看其他用户使用的是什么。这是您的网站,这意味着您的软件不必与W3标准以外的任何内容兼容。你用的是由你自己决定的。更重要的是,您的职业需要独立和批判性思维。 1亿用户很容易出错。



-SA
Please see my comment to the question. It does not seem to be correct, by the reasons I tried to explain. I don't thing you can define a predicate "better" universally. Better for what?

So, I'll just give you a couple thoghts. First, read carefully and try to grasp the ideas:
http://en.wikipedia.org/wiki/JQuery[^],
http://en.wikipedia.org/wiki/AngularJS[^].

Here is what I think is the most important: despite the light weight of the products, they have very different philosophy. jQuery is more of a library. AngularJS is more of a framework: it is based on MVC, which is an architectural pattern:
http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller[^].

That said, you will have to fit your application and even your way of thinking into AngularJS. It can be useful for you, especially if your own thinking requires some more discipline and less leading, and if you need to learn architectures, for example. In a striking contrast to that, jQuery can fit itself into anything. You need to choose what suites you the most. None of my considerations could be used for propaganda of one or another way. Apparently, the most influential factor would be the goals and character of your project. It may fit to one model, or another model, or both. And of course, "less time to execute" is not a factor at all, in most cases. It all happens on the client side and rarely is a bottleneck in performance.

And of course you should not look at what other users use. This is your site, and it means your software does not have to be compatible with anything except W3 standards. What you use is up to you. More importantly, your profession requires independent and critical thinking. 100 millions users can easily be wrong.

—SA


AngularJs和jQuery都已经被在Javascript之上开发。



让我们来看看上面库的创建者。



什么是jQuery?



AngularJs and jQuery both have been developed on top of Javascript.

Let's take what says the creator of above libraries.

What is jQuery?

引用:

jQuery是一个快速,小巧,功能丰富的JavaScript库。它通过易于使用的API在大量浏览器中运行,使得HTML文档遍历和操作,事件处理,动画和Ajax变得更加简单。结合了多功能性和可扩展性,jQuery改变了数百万人编写JavaScript的方式。

jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.





jQuery



为什么选择AngularJS?





jQuery

Why AngularJS?

引用:

HTML非常适合声明静态文档,但当我们尝试使用它来声明Web应用程序中的动态视图时,它就会动摇。 AngularJS允许您为应用程序扩展HTML词汇表。由此产生的环境非常具有表现力,可读性和快速开发。

HTML is great for declaring static documents, but it falters when we try to use it for declaring dynamic views in web-applications. AngularJS lets you extend HTML vocabulary for your application. The resulting environment is extraordinarily expressive, readable, and quick to develop.





AngularJs



所以我可以说你可以使用AngularJS来开发基于MVC的应用程序,例如SPA(单页应用程序)。作为示例Dash board Application或新闻网站等。除了你需要做客户端的所有其他场景,你可以使用jQuery。让我们说企业级应用程序(作为ERP),它需要一些异步ajax调用或UI弹出窗口或一种场景。



你可以查看我提到的下面提到的链接询问它为AngularJs提供的应用程序。



企业级系统的单页应用程序



我希望这对你有所帮助。



AngularJs

So I can say that you can use AngularJS for develop MVC based Application such as SPA (Single Page Application).As an example Dash board Application or News site etc.But all other scenarios where you need to do client side stuff then you can use jQuery. Let's say for enterprise level application (as ERP) which it requires some async ajax call or UI popups or kind of scenarios.

You can check below mentioned link which I involved for ask about the applications which it suites for AngularJs.

Single Page Application for Enterprise Level Systems

I hope this will help to you.


取决于你..
Advancing from jQuery to AngularJS





找出两个... jQuery - AngularJS



http://www.pro-tekconsulting.com/blog/advancing-from-jquery-to-angularjs/ [ ^ ]


这篇关于哪一个更好用...? Jquery或AngularJS ......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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