TypeError:t.slice不是一个函数(由" undefined"引起)ng-table

时间:2017-03-01 09:20:17

标签: javascript angularjs

我在一个包含使用ng-table的表的页面中遇到此问题。

Here is console log:
TypeError: t.slice is not a function (caused by "undefined") at o
(https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.js:1:14033) at s 
(https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.js:1:14326) at e 
(https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.js:1:16847) at l.reload (https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.js:1:21598) at
https://unpkg.com/ng-table@2.0.2/bundles/ng-table.min.js:1:6817 at 
Scope.$digest (http://localhost:3000/lib/angular/angular.js:17286:23) at
Scope.$apply (http://localhost:3000/lib/angular/angular.js:17552:24) at 
done (http://localhost:3000/lib/angular/angular.js:11697:47) at 
completeRequest (http://localhost:3000/lib/angular/angular.js:11903:7) at
XMLHttpRequest.requestLoaded     
(http://localhost:3000/lib/angular/angular.js:11836:9) undefined

您是否知道导致此错误的原因?

编辑: 我把我的代码添加到了plunker。

https://plnkr.co/edit/LpuWWu8vB5Ng5EZegd8t?p=preview

0 个答案:

没有答案