加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

数组 – Angular – umd.js vs rx.umd.js

发布时间:2020-12-17 17:15:38 所属栏目:安全 来源:网络整理
导读:在Angular教程之后,我们可以看到: script src="node_modules/angular2/bundles/angular2.umd.js"/script 在https://angular.io/docs/js/latest/guide/forms.html使用的同时, script src="node_modules/rxjs/bundles/Rx.umd.js"/script 用于https://angular.
在Angular教程之后,我们可以看到:

<script src="node_modules/angular2/bundles/angular2.umd.js"></script>

在https://angular.io/docs/js/latest/guide/forms.html使用的同时,

<script src="node_modules/rxjs/bundles/Rx.umd.js"></script>

用于https://angular.io/docs/js/latest/quickstart.html

有人可以解释或指向一个文档,解释何时调用哪个JS文件.提前致谢

解决方法

UMD捆绑包适用于使用ES5编写的用户以及对ngUpgrade感兴趣的用户.

有一个名为overview.md的文件位于https://code.angularjs.org/2.0.0-beta.0/,您可以查看其目的是什么.此文件尚未成为http://angular.io的一部分,但最有可能包含在未来.

引用该文档的一部分

ES5 and ngUpgrade users

ES5 users and AngularJS 1.x users interested in the ngUpgrade path can take advantage of the bundles in the 07002.
Those are coarse-grained bundles that combine many barrels in one final file.

Warning: bundles in the UMD format are not “additive”. A single application should use only one bundle from the above list.

在你的情况下,你需要Rx.umd.js(或者你想要的缩小版本)和一个Angular2 UMD包.

在文档本身中,有一个包含每个内容的列表/表.

更新

概述文件虽然在网站中尚未提供,但可以在存储库中找到.检查overview.md.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读