bootstrap-table表格做条件筛选,筛选出来的结果在table里用红色字体标识关键字
来源:互联网 发布:超声波传感器淘宝 编辑:程序博客网 时间:2024/06/04 08:07
//查询结果--关键字标识为红色
$("#ValueItemTable").on('post-body.bs.table', function () {
var txtReportName = $("#ReportTempletelName").val();
var reg = new RegExp(txtReportName, 'ig');
var tableId = document.getElementById("ValueItemTable");
if (txtReportName != null) {
for (var i = 1; i < tableId.rows.length; i++) {
var bb = tableId.rows[i].cells[0].innerHTML;
var displayColor = '<span style="color:red">' + txtReportName + '</span>';
var cc = bb.replace(reg, displayColor);
tableId.rows[i].cells[0].innerHTML = cc;
}
}
})
0 0
- bootstrap-table表格做条件筛选,筛选出来的结果在table里用红色字体标识关键字
- table表多项条件筛选
- bootstrap-table 筛选数据报400错误
- Table中筛选数据
- JS筛选table
- bootstrap table表格里的某一行置顶
- 通过dt筛选符合条件的结果
- bootstrap table的父子表格
- bootstrap的table表格使用
- 用phpcms做多种条件筛选菜单
- 在bootstrap的table表格中,设置文本内容居中
- react table filters筛选用法
- bootstrap table 条件查询
- bootstrap-table表格事件
- 用Table表格做课程表
- Bootstrap表格插件--bootstrap-table
- bootstrap-table的使用与条件搜索
- 推荐一个好用的表格插件Bootstrap Table
- 老司机带路,云服务器架构升级
- docker保存对容器的修改
- SVM支持向量机学习笔记
- 对数组转化为json格式的字符串
- MySQL大表优化方案
- bootstrap-table表格做条件筛选,筛选出来的结果在table里用红色字体标识关键字
- iOS10权限配置问题及上传Itunes审核注意事项
- jsp页面下拉框绑定数据库中数据
- JS的prototype和__proto__
- How Do I Declare A Block in Objective-C?
- Python学习资源(持续更新)
- JAVA线程池ThreadPoolExecutor与阻塞队列BlockingQueue
- 配置NTP服务ntpd/ntp.conf
- 解决 Windows下Python3 用pip 命令安装库出现 UnicodeDecodeError问题