js怎么单独获取到当前系统日期的月和日?比如1991-02-08只获取02和08

2025-05-02 17:08:40
推荐回答(1个)
回答(1):

var now = new Date;
alert (now.getMonth() + 1);
alert (now.getDate());