javaScript月份从零算起

来源:互联网 发布:淘宝已发货可以退款吗 编辑:程序博客网 时间:2024/05/29 14:36

var box = new Date();

alert(box.getMonth()+1));


这样才算出正确的月份。

0 0
原创粉丝点击