Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Javascript 的 Datejs 库似乎不想解析自己的 ISO 格式字符串:
Date.parse((new Date()).toISOString ( )) // Result is null
我应该这样做吗?
您使用的是哪个浏览器?我在 Firefox 的控制台中尝试了语法,它返回了正确的日期值:
>>> Date.parse((new Date()).toISOString ( )) Date {Mon Mar 19 2012 22:20:55 GMT+0100}