为什么是毫秒数?
来源:5-10 编程练习
web_東
2017-10-06 01:40:32
1回答
小丸子爱吃菜
2017-10-06
set方法设置的年月日返回值都是调整过之后的毫秒数,一般都是如下使用:
<html>
<body>
<script type="text/javascript">
var d = new Date()
d.setMonth(0)
document.write(d)
</script>
</body>
</html>
可以参考一下上面的小demo。
祝学习愉快!
相似问题