//上面的这个方法报错
DTInstances.getList().then(function (result) {
dtInstance = result;
});
Error: _dtInstances is null
getList@http://localhost:8080/bower_components/angular-datatables/dist/angular-datatables.js:457:9
@http://localhost:8080/scripts/app/adminCustomer/licenseManage/allotProduct/allotProduct.controller.js:203:9
invoke@http://localhost:8080/bower_components/angular/angular.js:3965:14
instantiate@http://localhost:8080/bower_components/angular/angular.js:3976:23
$ControllerProvider/this.$get</<@http://localhost:8080/bower_components/angular/angular.js:7315:18
$ViewDirectiveFill/<.compile/<@http://localhost:8080/bower_components/angular-ui-router/release/angular-ui-router.js:3897:28
nodeLinkFn@http://localhost:8080/bower_components/angular/angular.js:6752:13
compositeLinkFn@http://localhost:8080/bower_components/angular/angular.js:6146:13
publicLinkFn@http://localhost:8080/bower_components/angular/angular.js:6042:30
updateView@http://localhost:8080/bower_components/angular-ui-router/release/angular-ui-router.js:3839:23
$ViewDirective/directive.compile/</<@http://localhost:8080/bower_components/angular-ui-router/release/angular-ui-router.js:3801:11
$RootScopeProvider/this.$get</Scope.prototype.$broadcast@http://localhost:8080/bower_components/angular/angular.js:13093:15
transitionTo/$state.transition<@http://localhost:8080/bower_components/angular-ui-router/release/angular-ui-router.js:3218:11
qFactory/defer/deferred.promise.then/wrappedCallback@http://localhost:8080/bower_components/angular/angular.js:11682:31
qFactory/ref/<.then/<@http://localhost:8080/bower_components/angular/angular.js:11768:26
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:8080/bower_components/angular/angular.js:12811:16
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:8080/bower_components/angular/angular.js:12623:15
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:8080/bower_components/angular/angular.js:12915:13
done@http://localhost:8080/bower_components/angular/angular.js:8450:34
completeRequest@http://localhost:8080/bower_components/angular/angular.js:8664:7
createHttpBackend/</xhr.onreadystatechange@http://localhost:8080/bower_components/angular/angular.js:8603:1
使用getLast()
DTInstances.getLast().then(function (result) {
dtInstance = result;
})
只能刷新一个表