easyui序号实现累加
2016-02-29 10:03
309 查看
由于页面展示的需要,所以序号翻页需要实现累加。
在使用时,只需要将$("")中表格的名称改成自己的就可以了。
field: 'rowNumbers', title: '序号', align: 'center', width: 5, formatter: function(val,rec,index){ var op = $('#certificateGrid').datagrid('options'); return op.pageSize * (op.pageNumber - 1) + (index + 1); }
在使用时,只需要将$("")中表格的名称改成自己的就可以了。
相关文章推荐
- UIKit框架(4)App应用沙盒
- UINavigationController之NavigationItem
- 十七、Uiautomator 快速调试
- UiAutomator的使用过程
- iOS 开发之动画篇 - 从 UIView 动画说起
- MySQL Packet for query is too large
- 引导页和发起页框架简单自定义/LXGuideAndLaunch
- 妄谈UI设计
- 对valueForKeyPath:(NSString *)keyPath方法的理解
- Duilib入门文档
- [Hapi.js] Extending the request with lifecycle events
- [Hapi.js] POST and PUT request payloads
- iOS开发-UIActionSheet和UIAlertController
- EasyUI文档学习心得
- RESTful Request:GET/PUT/DELETE/POST/HEAD/OPTIONS
- java.lang.Exception: Exception in sending Request :: null
- Android--Handler,Looper,MessageQueue的关系
- WebSphere Message Queue介绍
- 设置UIImage的渲染模式:UIImage.renderingMode
- 获取手机信息(UIDevice、NSBundle、NSLocale)