easyUI的datetimebox年份和月份怎么不能修改?

输入框里面的时间只能修改日和时间,不能修改年份和月份是什么造成的

你是不是加了validator配置如果修改了年月就return false不允许修改了,自己检查代码
validator function(date) The validator function that is used to determine if a calendar day can be selected, return false to prevent from selecting a day. Available since version 1.3.6.

Code example:

 $('#cc').calendar({
    validator: function(date){
        if (date.getDay() == 1){return true;}
        else {return false;}
    }
})