前端页面Date时间格式化

在前端html页面使用velocity模板语言显示数据时,进行时间格式化:

$!{date.format('yyyy年MM月dd日 HH时mm分ss秒',$!{codeReview.commitTime})}

使用后如图:

猜你喜欢

转载自blog.csdn.net/sayoko06/article/details/79806463
今日推荐