今天是:var d = new Date(); var today = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate(); console.log(today);
用JavaScript 实现今天日期
最新推荐文章于 2023-04-25 12:57:43 发布
今天是:var d = new Date(); var today = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate(); console.log(today);