Git Product home page Git Product logo

paginationbyangular's Introduction

使用组件时,在获取数据库数据之前,要初始化组件参数
$scope.common = {
totalNum:27,
currentPage:1,
pageSumNum: 5,
perNum:2,
perPageNum:[2,3,4,5]
};

/思路:当前页显示在页码列表的中间,页码长度固定且页码列表的长度先要判断其奇偶性/
/具体细节代码看oacontroller.js/
/******************************** 变量说明
**** pageSumNum:页码长度
**** pageList:页码列表
**** totalPage:总页码数
**** currentPage:当前页
**** totalNum:数据库信息总数
**** perNum:每页显示的信息数
**** perPageNum:切换perNum
********************************/

/**结合django框架的后台实现实例参看“OATest”工程,git源码链接:
https://github.com/SunnyLiHY/OATest.git
**/

paginationbyangular's People

Contributors

sunnylihy avatar

Stargazers

Klar.Yang avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.