javascript 日期常用的方法

wm55945 13 0 PDF 2020-12-06 04:12:22

1:经常涉及到日期的换算比较: 代码如下: <html> <head> <title></title> [removed] function returnMaxDate(){ var datevalue1 = document.getElementById(“date1”).value; var datevalue2 = document.getElementById(“date2”).value; if(datevalue1 > datevalue2){ return datevalue1; }else{ return datevalue2;

用户评论
请输入评论内容
评分:
暂无评论