<script>
var oDate=new Date();

oDate.setMonth(oDate.getMonth()+1, 1);
// 11-1

oDate.setDate(0);
// 10-31
alert((oDate.getMonth()+1)+'-'+oDate.getDate());
</script>

posted on 2015-03-24 14:31  Wang_H2018  阅读(163)  评论(0编辑  收藏  举报