当前位置: 首页 > 工具软件 > jQuery Gird > 使用案例 >

Jq.gird 表格加载完后运行函数

郑哲彦
2023-12-01
jq.gird有自带函数

loadComplete: function () {//加载后运行函数
    $("#errInfo tbody tr:not(:first) td:nth-child(4)").each(function () {//修改title显示
        $(this).attr("title", $(this).text().replace(/_#br/g, '\n').replace(/_#_/g, ' '));
//    $(this).html($(this).text().replace(/_#br/g, '\n').replace(/_#_/g, ' '));
    });
    $("#errInfo tbody tr:not(:first) td:nth-child(5)").each(function () {//CONFIRM==N,显示为红色
        if($(this).text()=="N"){
            $(this).css({color:"red"});
        }
    })
}
 类似资料: