我<script type='text/javascript' src='Test.js'>在index.html 中添加了一个本地 javascript 文件,但是当我使用 ng serve 运行它并转到时localhost:4200,在我的浏览器控制台中,我看到了这个错误:
<script type='text/javascript' src='Test.js'>
localhost:4200
GET localhost:4200/Test.js 404 (Not Found) 但我的文件与我的 index.html 位于同一位置。
但 angular 2 没有加载或找到这个。请帮我。
javascript angular
angular ×1
javascript ×1