【发布时间】:2016-07-24 03:50:08
【问题描述】:
我按照网络说明手动创建了 Angular 2 的 5 Min Quickstart。 该应用程序与 QuickStart 教程几乎相同。但我像这样导入了 .js 文件:
<script src="node_modules/es6-shim/es6-shim.min.js" />
<script src="node_modules/systemjs/dist/system-polyfills.js" />
<script src="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js" />
<script src="node_modules/angular2/bundles/angular2-polyfills.js" />
<script src="node_modules/systemjs/dist/system.src.js" />
<script src="node_modules/rxjs/bundles/Rx.js" />
<script src="node_modules/angular2/bundles/angular2.dev.js" />
像下面这样更改它们,使应用程序工作:
<script src="node_modules/es6-shim/es6-shim.min.js"></script>
<script src="node_modules/systemjs/dist/system-polyfills.js"></script>
<script src="node_modules/angular2/es6/dev/src/testing/shims_for_IE.js></script>
<script src="node_modules/angular2/bundles/angular2-polyfills.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script src="node_modules/rxjs/bundles/Rx.js"></script>
<script src="node_modules/angular2/bundles/angular2.dev.js"></script>
任何人都可以解释这种奇怪的(至少对我而言)行为吗?
【问题讨论】:
-
script标签本质上不是自闭合的..
标签: javascript html angular