var picker = new mui.DtPicker({"type":"month"});
picker.show(function(rs) {
var y = rs.y.value;
var m = rs.m.value;
var text = y+'年'+m+'月';
document.getElementsByClassName("month-full")[0].innerText = text;
newDate = m+'/1/'+y;
new xCalendar('#calendar1', {date: newDate})
date = rs.value+'-01'; //默认为选择月份的1号
picker.dispose();
plus.nativeUI.showWaiting();
initData();
$("td[data-date=\""+newDate+"\"]").addClass("active");
//return true;
});
有时候选择月份之后弹出框不自动缩回去是为什么
0 个回复