gpt4 book ai didi

javascript - 错误 : [ng:areq] Argument 'DepartmentCustomReportController' is not a function, 在 Internet Explorer 中未定义

转载 作者:行者123 更新时间:2023-12-03 05:42:14 24 4
gpt4 key购买 nike

我仅在 Internet Explorer 中遇到错误,当我在 Chrome 中尝试相同的 Controller 时工作正常。我的index.html:

<script src="assets/js/boostrapJs/jquery-1.11.1.min.js"></script>
<script src="assets/js/boostrapJs/angular.js"></script>
<script src="assets/js/boostrapJs/ngDialog.js"></script>
<script src="assets/js/boostrapJs/angular-route.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-google-chart/0.1.0/ng-google-chart.min.js"
type="text/javascript"></script>
<script src="assets/js/boostrapJs/ui-bootstrap-tpls.js"></script>
<script src="assets/js/boostrapJs/angular-animate.js"></script>
<script src="assets/js/boostrapJs/angular-touch.js"></script>
<script src="assets/js/boostrapJs/angular-ui-router.js"></script>
<script src="app/components/app.js"></script>
<script src="app/components/sonar/sonarController.js"></script>
<script src="app/components/teamcity/teamCityController.js"></script>
<script src="app/components/tom/tomController.js"></script>
<script src="app/components/admin/adminController.js"></script>
<script src="app/components/kpiEntity/kpiEntityController.js"></script>
<script src="app/components/history/historyController.js"></script>
<script src="app/components/kpiDefinitions/kpiDefinitionsController.js"></script>
<script src="app/components/customReports/departmentCustomReportController.js"></script>
<script type="text/javascript" src="fusioncharts-suite-xt/js/fusioncharts.js"></script>
<script type="text/javascript" src="fusioncharts-suite-xt/js/themes/fusioncharts.theme.fint.js"></script>
<script type="text/javascript" src="fusioncharts-suite-xt/angularjs-plugin/wrappers/angularjs/angular-fusioncharts.min.js"></script>

还在js代码中我定义了 Controller ,如下所示

angular.module('dashboardApp').controller('DepartmentCustomReportController', ['$scope','$http', 'baseUrl', 'sharedProperties', 'ngDialog',
function ($scope, $http, baseUrl, sharedProperties, ngDialog) {

问题就像我所说的仅在 Internet Explorer 11 中,而我使用的是 JavaScript 6。

最佳答案

问题是我使用了一些 Fusion 图表库,这就是为什么在 Internet Explorer 中无法工作的原因,因为我在 IE 中遇到了该错误,而在 Chrome 中工作得很好。

关于javascript - 错误 : [ng:areq] Argument 'DepartmentCustomReportController' is not a function, 在 Internet Explorer 中未定义,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40482131/

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