一.获取当前table分页的页码 有两种方式可以获得当前选中的页码: 1.通过table的onPageChange方法 $('#agentTable').bootstrapTable({ data: {........}, onPageChange: function (pageNumber) { $.cookie("curAgentTablePageNumber", pageNumber); }, columns: [ {......} ]}); 2.通过table的getOptio…
通过theadClasses属性设置表头样式. thead-light设置灰色背景 //bootstrap table初始化数据 itxst.com $('#table').bootstrapTable({ columns: columns, data: getData(), theadClasses: "thead-light",//这里设置表头样式 classes: "table table-bordered table-striped table-sm table-da…
日常开发中我们通常会用到隔行变色来美化表格,也会根据每行的数据显示特定的背景颜色,如果库存低于100的行显示红色背景 CSS样式 <style> .bg-blue { background-color: #0074D9 !important; } .bg-green { background-color: green !important; } .bg-red { background-color: red !important; } </style> JS代码 <scrip…
思路:遍历被选中的checkbox对象→根据选中项筛选出需要删除的行→删除行.实例说明如下: 1.HTML结构 <table id = "test_table"> <tr><td><input type="checkbox" name="test"></td><td>1</td><td>2</td><td>3</td>…
参考:https://www.jianshu.com/p/1bb4c37ef636 在 bootstrap-table.min.css 中修改源码 //选中行颜色 .fixed-table-container tbody .selected td{background-color:#EEE8AA} 在bootstrap.min.css中修改源码 //奇偶行颜色 .table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}…
var idlist = $('#table').bootstrapTable('getAllSelections');     for (var i = 0; i < idlist.length; i++) {       alert(idlist[i].ID);     }…
  有时候需要让光标显示在EditText的指定位置或者选中某些文本.同样,为了方便用户输入以提升用户体验,可能需要使EditText获得或失去焦点. 1. 设置光标到指定位置 EditText et = (EditText) findViewById(R.id.etTest); et.setSelection(2); PS:当内容过多时,可通过设置光标位置来让该位置的内容显示在屏幕上. 2. 隐藏光标 EditText et = (EditText) findViewById(R.id.etT…
转:http://blog.csdn.net/dajian790626/article/details/8464722 有时候需要让光标显示在EditText的指定位置或者选中某些文本.同样,为了方便用户输入以提升用户体验,可能需要使EditText获得或失去焦点. 1. 设置光标到指定位置 EditText et = (EditText) findViewById(R.id.etTest); et.setSelection(2); PS:当内容过多时,可通过设置光标位置来让该位置的内容显示在屏…
$(function () { $('#exampleTable').on('uncheck.bs.table check.bs.table check-all.bs.table uncheck-all.bs.table',function(e,rows){ var datas = $.isArray(rows) ? rows : [rows]; // 点击时获取选中的行或取消选中的行 examine(e.type,datas); // 保存到全局 Array() 里 }); })//examp…
返回总目录:ABP+AdminLTE+Bootstrap Table权限管理系统一期 缓存 为什么要用缓存 为什么要用缓存呢,说缓存之前先说使用缓存的优点. 减少寄宿服务器的往返调用(round-trips). 如果缓存在客户端或是代理,将减少对服务器的请求,减少带宽. 减少对数据库服务器的往返调用(round-trips). 当内容缓存在web服务器,能够减轻对数据库的请求. 减少网络带宽. 避免了重新生成可重用内容的时耗. 提高性能 因为缓存减少了round-trips, network t…