文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>js 中Date类型一些运算

js 中Date类型一些运算

时间:2010-12-21  来源:ajin

1 var limitationOfExpired =new Date(dateIssue.getFullYear(),dateIssue.getMonth(),dateIssue.getDate());//make year month date same with dateissue
2 limitationOfExpired.setFullYear(dateIssue.getFullYear() + 1);


3.比较
     

1   if (dateExired - limitationOfExpired>0)
2                 alert("有效日期最多一年!");

4    if (dateExired <dateIssue)
5                 alert("有效期不能小于发证日期");  


4.         

  var date=new Date();//actually get current date
//same with:
  var date=Date();


 

相关阅读 更多 +
排行榜 更多 +
战舰激斗内置功能菜单MOD中文版下载

战舰激斗内置功能菜单MOD中文版下载

策略塔防 下载
请快来吧狐莉小姐手机版下载

请快来吧狐莉小姐手机版下载

休闲益智 下载
战斗少女跑酷游戏下载

战斗少女跑酷游戏下载

角色扮演 下载