我们通常使用 new Date(timestamp) 通过时间戳来创建日期,并可以使用 date. ... setHours(0, 0, 0, 0); alert(today); // 日期依然是今天,时间 ...
確定! 回上一頁