javascript - ng-table遇到报错 App Already Bootstrapped with this Element 'docum
黄舟
黄舟 2017-04-10 16:22:45
0
0
1079

在用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});
            
            
        

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

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!