今天学习js时发现使用getMonth()获得月份比实际月份少一个月
<!DOCTYPE html>
<html>
<head>
<title>month</title>
<script type="text/javascript">
var time =new Date();
document.write("现在是:2019年"+time.getMonth()+"月"+time.getDate()+"日");
</script>
</head>
<body>
</body>
</html>