| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 896 人关注过本帖
标题:[求助]上次在看javascript的时候遇到的
只看楼主 加入收藏
情圣
Rank: 1
等 级:新手上路
帖 子:63
专家分:0
注 册:2004-10-6
收藏
 问题点数:0 回复次数:3 
[求助]上次在看javascript的时候遇到的

上次在看javascript的时候遇到关于显示系统日期的代码

其它的比如Day、hour什么的都没有加1

而为什么getMonth()+1呢

搜索更多相关主题的帖子: javascript 
2004-11-22 11:02
情圣
Rank: 1
等 级:新手上路
帖 子:63
专家分:0
注 册:2004-10-6
收藏
得分:0 

怎么没有人回答呢

555555555555~~~~


在静中寻找一切最美的感觉... /images/upphoto/306.jpg" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs.glite./images/upphoto/306.jpg');}" onmousewheel="return imgzoom(this);" alt="" />
2004-11-27 15:29
griefforyou
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:3336
专家分:0
注 册:2004-4-15
收藏
得分:0 
getMonth 得到的月份范围是 0-11

天津网站建设 http://www./
2004-12-03 10:29
jacky
Rank: 1
等 级:新手上路
帖 子:104
专家分:0
注 册:2004-12-17
收藏
得分:0 

getDay()返回0-6

getMonth返回0-11

为了和现实中的时间对应,就需要加一了

2004-12-20 10:42
快速回复:[求助]上次在看javascript的时候遇到的
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017300 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved