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

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

    <tfoot id='dFQgX'></tfoot>

      • <bdo id='dFQgX'></bdo><ul id='dFQgX'></ul>
      1. <legend id='dFQgX'><style id='dFQgX'><dir id='dFQgX'><q id='dFQgX'></q></dir></style></legend>

        layui时间格式错误或者出现NaN-NaN-NaN问题怎么解决?

        时间:2023-10-08

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

            <bdo id='B7IbF'></bdo><ul id='B7IbF'></ul>
            <tfoot id='B7IbF'></tfoot>

                <tbody id='B7IbF'></tbody>

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

                2. 问题描述:

                  layui时间格式错误或者出现NaN-NaN-NaN问题

                  解决办法

                  列表中写法:
                  field: 'FaultDate', title: '故障时间', templet: function (d) {
                   return showTime(d.FaultDate);}
                  
                  js函数:
                  function showTime(tempDate) {
                                  var date = tempDate.replace(/[^0-9]/ig, "");
                                  var d = new Date(parseInt(date));
                                  var year = d.getFullYear();
                                  var month = d.getMonth(); month++; month = month < 10 ? "0" + month : month;
                                  var day = d.getDate(); day = day < 10 ? "0" + day : day;
                                  var time = year + "-" + month + "-" + day;
                                  return time;
                              }
                  
                   
                  上一篇:layui表格中选择下拉框同时如何拿到对应行的ID值? 下一篇:没有了

                  相关文章

                  最新文章

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

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

                    <tfoot id='ALXke'></tfoot>