如何获得多少月
怎么获得月份和多少号呢
怎么获得月份和多少号呢
2017-08-10
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>获得年份 </title>
<script type="text/javascript">
var mydate=new Date();
var mymonth=mydate.getMonth();
var mydate1=mydate.getDate();
document.write(mymonth+1+"月<br>"+mydate1+"日");
</script>
</head>
<body>
</body>
</html>
举报