vue2.0的Element UI的表格table列时间戳格式化

来源:互联网 发布:俄罗斯经济 知乎 编辑:程序博客网 时间:2024/06/06 03:22

myDateFormat: function (row,column) {  console.log("进来")  let value = row[column.property];  let rg2 = new RegExp('T', "g");  let newDate = value.replace(rg2, ' ');  return newDate}



http://blog.csdn.net/x_lord/article/details/70225481
  1. <el-table-column  :formatter="myDateFormat"  prop="RecordTime"  label="时间"  width="120"></el-table-column><el-table-column  prop="RentingHouseName"  label="区域"  width="200"></el-table-column>
阅读全文
0 0
原创粉丝点击