(today.getMonth()+1).toString().replace(/^(\d)$/,'0$1') 转载于:https://www.cnblogs.com/Alone-Learner/p/4591180.html