官网设置 $scope.totalServerItems = 0;
注释该行能显示当前页。
================================
官网设置
$scope.$watch(‘pagingOptions‘, function (newVal, oldVal) {
if (newVal !== oldVal && newVal.currentPage !== oldVal.currentPage) {
$scope.getPagedDataAsync($scope.pagingOptions.pageSize, $scope.pagingOptions.currentPage, $scope.filterOptions.filterText);
}
}, true);
if条件改为newVal !== oldVal
【备忘录】ng-grid paging 当前页不显示,选择页数无反应
时间: 2024-11-05 16:09:56