$(document).on('focus',".expdate",function(){
$('.expdate').datepicker({minDate:0});
$(this).datepicker();
$( ".expdate" ).datepicker('option', 'dateFormat' , 'dd/mm/yy');
即使我尝试使用changeYear:true
答案 0 :(得分:1)
试试这个
$(document).on('focus','.expdate',function(){
$('.expdate').datepicker({ minDate:0, dateFormat:'dd/mm/yy'});
});