suchen

Heim  >  Fragen und Antworten  >  Hauptteil

javascript - ng-table遇到报错 App Already Bootstrapped with this Element 'docum

在用rdash做一个网站的管理员界面,某个标签页只要添加了ng-table就会出现报错:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.    jquery.js:8561 
WARNING: Tried to load angular more than once.                                                                                                                                     VM1178:26427  
Uncaught Error: [ng:btstrpd] App Already Bootstrapped with this Element 'document'
http://errors.angularjs.org/1.3.17/ng/btstrpd?p0=document                                                                                                                            angular.js:63  

并且排版错乱。
奇怪的是其他的标签页里也使用了ng-table,并没有出问题,而且查找了整个项目,不会有第二处angular.bootstrap

view.html

<table ng-table="tableParams" class="table">
        ......
</table>


controller.js

$scope.tableParams = new ngTableParams({
                page:1,
                count:20
            },{data:settlements});
            
            
        

反正我有点懵逼了...谁碰到过这个报错吗?

黄舟黄舟2817 Tage vor1124

Antworte allen(0)Ich werde antworten

Keine Antwort
  • StornierenAntwort