将Mdate.js代码:
inputYear = inputYear || that.beginYear; inputMonth = inputMonth || that.beginMonth; inputDay = inputDay || that.beginDay;
改为:
inputYear = inputYear || new Date().getFullYear(); inputMonth = inputMonth || new Date().getMonth()+1; inputDay = inputDay || new Date().getDate();
就能实现默认显示当前日期