如何用moment实现 期望时间 与 当前时间 之间的天数?
const VoteHeader = ({title, creater, exp, total}) => (
{title}
{creater}发起
剩余{moment(exp).startOf('hours').fromNow(true)}
{total}
参与人数
)
是用subtract实现么?思路是什么 求前辈解惑
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
欢迎选择我的课程,让我们一起见证您的进步~~