$ npm install -g smart-time-ago
$('body').timeago();
<div class="timeLabels"> <time class="timeago" datetime="2012-07-18T07:51:50Z">about 8 hours ago</time> <time class="timeago" datetime="2012-07-18T06:51:50Z">about 9 hours ago</time> </div> $('.timelabels').timeago();
$.fn.timeago.defaults = { selector: 'time.timeago', attr: 'datetime', dir: 'up', suffix: 'ago' };
使用道具 举报
本版积分规则 发表回复 回帖并转播 回帖后跳转到最后一页
|关于我们|申请友链|Archiver|手机版|拘留所|冠富商务通
GMT+8, 2026-5-14 13:21 , Processed in 0.080001 second(s), 12 queries , Wincache On.
Powered by HCMS Version 2.0
© 2008-05-14 guanfu.net.cn