function formatDate(time) { var timeTemp = getDate(time); var timeString = timeTemp.toLocaleDateString() + timeTemp.toLocaleTimeString(); return timeString.replace('/','-').replace('/','-').replace('上午',' ').replace('下午',' '); } module.exports.formatDate = formatDate; {{ item.user.wechatName }} {{ wxs.formatDate(item.fans.gmtCreated) }}