File:JavaScript getYear Method Problem.png
JavaScript_getYear_Method_Problem.png (326 × 190像素,文件大小:6 KB,MIME类型:image/png)
说明
摘要[编辑]
描述JavaScript getYear Method Problem.png |
English: Webpage screenshots showing the JavaScript .getYear method problem. It depicts the so-called Year 2000 problem.
The results of the .getYear method are different with Internet Explorer 6-8 and the other modern browsers:
.getYear is now obsoleted, but supported for backward compatibility by all modern browsers. .getFullYear is not supported before IE6. With those that support it, the 4-digit full year is always returned. This method is currently recommended.
BTW, if you want to return a 2-digit year value (only for AD, 3, 203, 1803, 1903 and 2003 all return "03", that are the last two digits) in modern browsers, you may try: ("0"+dateObj.getFullYear().toString()).slice(-2);
References: |
||
日期 | |||
来源 | 自己的作品 | ||
作者 | Tomchen1989 |
许可协议[编辑]
本作品采用知识共享CC0 1.0 通用公有领域贡献许可协议授权。 | |
采用本宣告发表本作品的人,已在法律允许的范围内,通过在全世界放弃其对本作品拥有的著作权法规定的所有权利(包括所有相关权利),将本作品贡献至公有领域。您可以复制、修改、传播和表演本作品,将其用于商业目的,无需要求授权。
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2014年5月2日 (五) 18:29 | 326 × 190(6 KB) | Tomchen1989(留言 | 贡献) | User created page with UploadWizard |
您不可以覆盖此文件。
文件用途
没有页面使用本文件。
全域文件用途
以下其他wiki使用此文件:
- el.wikipedia.org上的用途
- en.wikipedia.org上的用途
- es.wikipedia.org上的用途
- hu.wikipedia.org上的用途
- zh.wikipedia.org上的用途
元数据
此文件含有额外信息,这些信息可能是创建或数字化该文件时使用的数码相机或扫描仪所添加的。如果文件已从其原始状态修改,某些详细信息可能无法完全反映修改后的文件。
水平分辨率 | 28.34 dpc |
---|---|
垂直分辨率 | 28.34 dpc |
使用软件 | |
数字化日期时间 |
|