AngularJS学习:AngularJS的甜蜜点

原文位置:https://docs.angularjs.org/guide/introduction

AngularJS's sweet spot 

AngularJS simplifies applicationdevelopment by presenting a higher level of abstraction to the developer. Likeany abstraction, it comes at a cost of flexibility. In other words, not everyapp is a good fit for AngularJS. AngularJS was built with the CRUD applicationin mind. Luckily CRUD applications represent the majority of web applications.To understand what AngularJS is good at, though, it helps to understand when anapp is not a good fit for AngularJS. Games and GUI editors are examples ofapplications with intensive and tricky DOM manipulation. These kinds of appsare different from CRUD apps, and as a result are probably not a good fit forAngularJS. In these cases it may be better to use a library with a lower levelof abstraction, such as jQuery.

 

AngularJS的甜蜜点 

AngularJS通过向开发人员呈现更高级别的抽象来简化应用程序开发。像任何抽象一样,它具有灵活性。换句话说,并不是每个应用程序都适合AngularJS。 AngularJS是用CRUD应用程序构建的。幸运的是,CRUD应用程序代表了大多数Web应用程序。了解了AngularJS的优点,同时,我们也了解了什么时候应用程序不适合AngularJS。 游戏和GUI编辑器是具有强化和棘手DOM操作的应用程序的示例。这些应用程序与CRUD应用程序不同,因此可能不适合AngularJS。在这些情况下,最好使用较低抽象级别的库,如jQuery。

猜你喜欢

转载自blog.csdn.net/chaiyu2002/article/details/70337917