• 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;//更新总记录数
                        }
                    );
                }
  • 相关阅读:
    信息收集
    beef框架使用
    网站程序CMS识别
    查找网站后台
    下载漏洞原理及利用
    后台拿webshell方法(2)
    如何学好web安全
    TIME_WAIT过多的解决方法(转)
    sudo
    keepalived+lvs子网掩码造成VIP切换故障 + vrrp_script+track_script
  • 原文地址:https://www.cnblogs.com/lijun6/p/11318196.html
Copyright © 2020-2023  润新知