Javascript获取日期和星期
摘要:
javascript获取日期,亮点:方法ie跟其他浏览器不同。function getDateWeek(){todayDate = new Date();date = todayDate.getDate();month= todayDate.getMonth() +1;year= todayDate.getYear();var dateweek = "今天是:";if(navigator.appName == "Netscape"){ dateweek = dateweek + (1900+year) + "年" + month + 阅读全文
posted @ 2013-01-04 17:19 靖儿 阅读(310) 评论(0) 推荐(0) 编辑