gpt4 book ai didi

javascript - Angular JS 是库还是框架?

转载 作者:可可西里 更新时间:2023-11-01 02:01:50 25 4
gpt4 key购买 nike

在浏览有关 Angular JS 的在线文档时,他们在一些文档中提到 Angular JS 不是库,它是 Frame Work 但在某些网站上,他们提到 Angular JS 是库。

哪个是正确的?

最佳答案

Angular 是一个框架

这是对 AngularJS site 的直接引用

AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly. Angular's data binding and dependency injection eliminate much of the code you would otherwise have to write. And it all happens within the browser, making it an ideal partner with any server technology.

这只是介绍部分,但它告诉我们 AngularJS 绝对是一个框架,而不仅仅是一个库。

定义差异

执行特定的、定义明确的操作。

框架 是一个骨架,应用程序通过填充骨架来定义操作的“主体”。骨架仍然有链接各部分的代码,但最重要的工作由应用程序完成。

来自 this问题,请感谢所有者。

关于javascript - Angular JS 是库还是框架?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32050734/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com