zoukankan      html  css  js  c++  java
  • Angular.js分页代码


                $scope.reloadList=function(){
                 
                    $scope.findPage( $scope.paginationConf.currentPage, $scope.paginationConf.itemsPerPage);
                }
      
                $scope.paginationConf = {
             
                    currentPage: 1,

                    totalItems: 10,

                    itemsPerPage: 10,
      
                    perPageOptions: [10, 20, 30, 40, 50],
                    onChange: function(){
                        $scope.reloadList();
                    }
                };
       
                $scope.findPage=function(page,rows){
                    $http.get('../brand/findPage.do?page='+page+'&rows='+rows).success(
                        function(response){
                         
                            $scope.list=response.rows;
                           
                            $scope.paginationConf.totalItems=response.total;//更新总记录数
                        }
                    );
                }
  • 相关阅读:
    测试随笔
    ECNU 3530 和你在一起
    ECNU 1030 母牛生小牛
    ECNU 3081 购房还款
    PPP模式下的融资结构优化
    决策树分类
    关联规则-R语言实现
    中国快递包裹总量的预测-基于SARIMA模型
    LeetCode 2 :Swap Nodes in Pairs
    2018092609-2 选题 Scrum立会报告+燃尽图 04
  • 原文地址:https://www.cnblogs.com/lijun6/p/11318196.html
Copyright © 2011-2022 走看看