<tfoot id='z5LoI'></tfoot>

    <i id='z5LoI'><tr id='z5LoI'><dt id='z5LoI'><q id='z5LoI'><span id='z5LoI'><b id='z5LoI'><form id='z5LoI'><ins id='z5LoI'></ins><ul id='z5LoI'></ul><sub id='z5LoI'></sub></form><legend id='z5LoI'></legend><bdo id='z5LoI'><pre id='z5LoI'><center id='z5LoI'></center></pre></bdo></b><th id='z5LoI'></th></span></q></dt></tr></i><div id='z5LoI'><tfoot id='z5LoI'></tfoot><dl id='z5LoI'><fieldset id='z5LoI'></fieldset></dl></div>

    1. <small id='z5LoI'></small><noframes id='z5LoI'>

        <bdo id='z5LoI'></bdo><ul id='z5LoI'></ul>

        <legend id='z5LoI'><style id='z5LoI'><dir id='z5LoI'><q id='z5LoI'></q></dir></style></legend>

        layui table表格中改变某一行的背景颜色

        时间:2024-08-13

            <legend id='wsme0'><style id='wsme0'><dir id='wsme0'><q id='wsme0'></q></dir></style></legend>
              <tbody id='wsme0'></tbody>
                <bdo id='wsme0'></bdo><ul id='wsme0'></ul>
                <tfoot id='wsme0'></tfoot>
                <i id='wsme0'><tr id='wsme0'><dt id='wsme0'><q id='wsme0'><span id='wsme0'><b id='wsme0'><form id='wsme0'><ins id='wsme0'></ins><ul id='wsme0'></ul><sub id='wsme0'></sub></form><legend id='wsme0'></legend><bdo id='wsme0'><pre id='wsme0'><center id='wsme0'></center></pre></bdo></b><th id='wsme0'></th></span></q></dt></tr></i><div id='wsme0'><tfoot id='wsme0'></tfoot><dl id='wsme0'><fieldset id='wsme0'></fieldset></dl></div>

                  <small id='wsme0'></small><noframes id='wsme0'>

                  layui table表格中读取数据后改变某一行的背景颜色,只需要在:done: function(res, curr, count) { 中加入如下代码即可。
                  for(var i =0;i<res.data.length;i++){
                  if(res.data[i].status==0){
                  $(".layui-table tbody tr").eq(i).css("background-color","red")
                  }
                  }
                  
                  其中,res.data[i].status为列中 status的值,可通过这个值进行多判断,具体可自己拓展。
                  上一篇:layui中添加上下文提示弹窗功能 下一篇:没有了

                  相关文章

                  <tfoot id='YuWTW'></tfoot>
                  <legend id='YuWTW'><style id='YuWTW'><dir id='YuWTW'><q id='YuWTW'></q></dir></style></legend>
                  • <bdo id='YuWTW'></bdo><ul id='YuWTW'></ul>
                  <i id='YuWTW'><tr id='YuWTW'><dt id='YuWTW'><q id='YuWTW'><span id='YuWTW'><b id='YuWTW'><form id='YuWTW'><ins id='YuWTW'></ins><ul id='YuWTW'></ul><sub id='YuWTW'></sub></form><legend id='YuWTW'></legend><bdo id='YuWTW'><pre id='YuWTW'><center id='YuWTW'></center></pre></bdo></b><th id='YuWTW'></th></span></q></dt></tr></i><div id='YuWTW'><tfoot id='YuWTW'></tfoot><dl id='YuWTW'><fieldset id='YuWTW'></fieldset></dl></div>
                  1. <small id='YuWTW'></small><noframes id='YuWTW'>