react-格式化日期


arrayObject.toLocaleString()   把数组转换为本地字符串。

<td>{ new Date(user.createtime).toLocaleString() }</td>

原文地址:https://www.cnblogs.com/luziluck/p/9327734.html