Giter VIP home page Giter VIP logo

jquery.mypages's Introduction

jquery.MyPages

基于Jquery的分页插件

使用方法

<html>
    <link href="myPages.css" rel="stylesheet" type="text/css"/>
    <script src="myPages.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        $(document).ready(function(){
            $("#myPages").myPages({
                pageNo:3,
                pageSize:15,
                firstPage:1,
                lastPage:10,
                url: "/list/{pageNo}-{pageSize}",
            })
        })
    </script>
    
<body>
    <div id="myPages">
    </div>
</body>
</html>

参数说明

    var defaluts = {
        url: "/{pageNo}-{pageSize}",   //页码跳转链接 {pageNo}与{pageSize}为固定占位符
        pageNo: 1,      //当前页码,同时对应链接内 {pageNo}
        pageSize: 10,   //每页显示数量,对应链接内{pageSize}
        firstPage: 1,   //首页页码
        lastPage: 1,   //最后一页页码
        preText: "&lt;",   //上一页显示的文字,默认为 <
        nextText: "&gt;",  //下一页显示的文字,默认为 >
        firstText: "«",//首页显示的文字,默认为 <<
        lastText: "»", //最后一页显示的文字,默认为 >>
        showPageButton: 6 //显示的页码数量,默认为6
    };

jquery.mypages's People

Contributors

jokeryg avatar

Watchers

 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.