TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Guess the date (JS):d=new Date();d.setFullYear(2010);d.setMonth(1);d.setDate(1)
1 点
作者
emilis_info
将近 15 年前
It's not 2010-01-01 or 2010-02-01 :-)
2 条评论
lhorie
将近 15 年前
Cute.<p><pre><code> d = new Date() >> 07/29/2010 d.setMonth(1) >> 02/29/2010 is invalid date, normalize to 03/01/2010</code></pre>
waivej
将近 15 年前
I'll guess it's 2010-02-02...