function getRaday(){ var date=new Date(); var year=date.getFullYear(); var month=date.getMonth()+1; var day=date.getDate(); if(month<10){ month="0"+month; } if(day<10){ day="0"+day; } var nowData=year+"-"+month+"-"+day; return nowData; }
帮到你了就帮我点个赞吧