var now = new Date(); var ye = now.getFullYear(); var mou = now.getMonth()+1; if(mou<10){ var mm=“0”+mou; var m=parseInt(mm); return m; }else{ var m = mou;}
月份小于10加一var now = new Date();var ye = now.getFullYear();var mou = now.getMonth()+1;if(mou<10){var mm=“0”+mou;var m=parseInt(mm);return m;}else{ var m = mou;}