html中的多个脚本标记

时间:2016-10-05 19:16:02

标签: javascript html angularjs

我目前正在开发一个angularJS应用程序。在我的主html(index.html)文件中,我有大约30到35个脚本标签,如

<script src="libs/angular/angular.js"></script>
<script src="libs/angular/angular-ui-router.js"></script>
<script src="libs/angular/ct-ui-router-extras.js"></script>
<script src="libs/angular/angular-touch.js"></script>
<script src="libs/angular/ui-grid.js"></script>
<script src="libs/angular/angular-breadcrumb.min.js"></script>
<script src="libs/bootstrap/ui-bootstrap-tpls-2.0.2.js"></script>
<script src="libs/bower_components/angular-sanitize/angular-sanitize.min.js"></script>
<script src="libs/bower_components/angular-strap/dist/angular-strap.min.js"></script>
<script src="libs/bower_components/angular-strap/dist/angular-strap.tpl.min.js"></script>
<script src="libs/bower_components/tv4/tv4.js"></script>
<script src="libs/bower_components/objectpath/lib/ObjectPath.js"></script>
<script src="libs/bower_components/angular-schema-form/dist/schema-form.js"></script>  <!-- modified hasSuccess method to avoid success display on initial display of form -->
<script src="libs/bower_components/angular-schema-form/dist/bootstrap-decorator.min.js"></script>
<script src="libs/bower_components/schema-form-datetimepicker/schema-form-date-time-picker.js"></script><!-- using this fork to allow for null date values  https://github.com/ngpatel143/angular-schema-form-datetimepicker/commit/aa28025295ba5988bb30f5c4dc26072cf455d9fb   -->

是否可以在index.html之外的另一个文件中定义所有这些脚本标记,然后只包含那个文件?

0 个答案:

没有答案