找到如下代码

if( !isNaN( date - 0 ) && String(format).toLowerCase() == "u") {  
//Unix timestamp  
timestamp = new Date( parseFloat(date)*1000 );  
}   

改为,即去掉*1000

if( !isNaN( date - 0 ) && String(format).toLowerCase() == "u") {  
//Unix timestamp  
timestamp = new Date( parseFloat(date) );  
}   

前台调用

                {
                    name: "createTime",
                    formatter:"date",
                    formatoptions: {srcformat:'u',newformat:'Y-m-d'},
                    label:  "<span>createTime</span>"
                }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2022-12-23
猜你喜欢
  • 2022-02-04
  • 2022-12-23
  • 2021-11-28
  • 2022-02-20
  • 2021-10-13
  • 2021-06-18
  • 2021-10-06
相关资源
相似解决方案