博客
关于我
layui自定义分页
阅读量:156 次
发布时间:2019-02-28

本文共 543 字,大约阅读时间需要 1 分钟。

//页码layui.use(['laypage', 'layer'], function() {  var laypage = layui.laypage    , layer = layui.layer;  laypage.render({    elem: 'page'    ,count: 100    ,layout: ['limit','count', 'first',  'prev', 'page','last',  'next', 'skip']    ,groups:4    ,first: '<img src="images/page-shouye.png">'    ,last: '<img src="images/page-weiye.png">'    ,prev: '<img src="images/page-prev.png">'    ,next: '<img src="images/page-next.png">'    ,limits:[5,10,15] //每页条数的选择项。    ,limit:5 //每页显示的条数    ,jump: function(obj){      console.log(obj)    }  });})

转载地址:http://hezj.baihongyu.com/

你可能感兴趣的文章
npm安装crypto-js 如何安装crypto-js, python爬虫安装加解密插件 找不到模块crypto-js python报错解决丢失crypto-js模块
查看>>
npm报错Failed at the node-sass@4.14.1 postinstall script
查看>>
npm报错unable to access ‘https://github.com/sohee-lee7/Squire.git/‘
查看>>
npm的安装和更新---npm工作笔记002
查看>>
npm的常用配置项---npm工作笔记004
查看>>
npm的问题:config global `--global`, `--local` are deprecated. Use `--location=global` instead 的解决办法
查看>>
npm编译报错You may need an additional loader to handle the result of these loaders
查看>>
npm设置淘宝镜像、升级等
查看>>
npm配置安装最新淘宝镜像,旧镜像会errror
查看>>
npm错误 gyp错误 vs版本不对 msvs_version不兼容
查看>>
npm错误Error: Cannot find module ‘postcss-loader‘
查看>>
NPOI之Excel——合并单元格、设置样式、输入公式
查看>>
NPOI利用多任务模式分批写入多个Excel
查看>>
NPOI在Excel中插入图片
查看>>
NPOI格式设置
查看>>
Npp删除选中行的Macro录制方式
查看>>
NR,NF,FNR
查看>>
nrf开发笔记一开发软件
查看>>
nrm —— 快速切换 NPM 源 (附带测速功能)
查看>>
nrm报错 [ERR_INVALID_ARG_TYPE]
查看>>