如何从AngularJS不同的jQuery [英] How is AngularJS different from jQuery

查看:102
本文介绍了如何从AngularJS不同的jQuery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只知道一JS库,这是的jQuery 。结果
但该集团在我的其他codeRS正在改变 AngularJS 作为新项目的默认库。

I only know one js library and that is jQuery.
But my other coders in the group are changing AngularJS as their default library in new project.

我不知道这件事。如何从jQuery的不同?结果
我已经有一组用于在jQuery的类似任务完​​成的功能。我仍然可以使用jQuery的东西与AngularJS?

I don't know anything about it. How is it different from jQuery?
I already have a set of functions done for similar tasks in jQuery. Can I still use jQuery stuff with AngularJS?

推荐答案

基本上,jQuery是为您操作和控制的DOM元素一个伟大的工具。
如果只着眼于DOM元素,没有数据CRUD,就像建立一个网站不是Web应用程序,jQuery是顶部的工具之一。 (您可以使用AngularJS为此也。)

Basically, jQuery is a great tool for you to manipulate and control DOM elements. If you only focus on DOM elements and no Data CRUD, like building a website not web application, jQuery is the one of the top tools. (You can use AngularJS for this purpose as well.)

AngularJS是一个框架。它具有以下特点

AngularJS is a framework. It has following features


  1. 双向数据绑定

  2. 明合文吉图(MVC-ISH)

  3. 模板

  4. 定制指令(可重用的组件,自定义标记)

  5. REST友好

  6. 深层链接(建立一个链接,任何动态网页)

  7. 表单验证

  8. 服务器通讯

  9. 本地化

  10. 依赖注入

  11. 完整的测试环境(包括单位,E2E)

检查此 presentation 这的badass介绍

不要忘了阅读官方开发指南

或从这些真棒视频教程学习它

如果你想观看更多的视频教程,看看这个职位的最好的,收集60+ Angularjs教程的。

If you wanna watch more tutorial video, check out this post, Collection of best 60+ Angularjs tutorials.

您可以使用jQuery与AngularJS没有任何问题。

You can use jQuery with AngularJS without any issue.

事实上,AngularJS使用jQuery精简版在里面。就像我说的JQ是一个伟大的工具。

In fact, AngularJS uses jQuery lite in it. Like I said jQ is a great tool.

通过常见问题解答

角是否使用jQuery库?

Does Angular use the jQuery library?

是的,角度可以使用jQuery,如果它在你的应用程序present当
  应用程序被自举。如果jQuery是不是在present您
  脚本路径,角回退到自己的实现的
  jQuery的子集,我们称之为jQLite。

Yes, Angular can use jQuery if it's present in your app when the application is being bootstrapped. If jQuery is not present in your script path, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.

然而,不要尝试使用jQuery修改AngularJS控制器的DOM,做它在你的指令。

However, don't try to use jQuery to modify the DOM in AngularJS controllers, do it in your directives.

这篇关于如何从AngularJS不同的jQuery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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