我正在使用以下代码来显示日历
$( "#datepicker" ).datepicker({
numberOfMonths: 2,
selectMultiple: true,
monthNames: [ "1月","2月","3月","4月","5月","6月",
"7月","8月","9月","10月","11月","12月" ],
dayNamesMin: ['日','月','火','水','木','金','土'],
showMonthAfterYear: true, //this is what you are looking for
beforeShowDay: highlightDays,
onSelect: function(selectedDate) {
date = jQuery(this).datepicker("getDate");
var rs = date.getDate();
}
});电流输出

我想像下面这样一年接着一年地添加年份符号

发布于 2017-04-19 18:05:32
我用下面的代码得到了这个。
$("#datepicker").datepicker({
numberOfMonths: 2,
showMonthAfterYear: true,
yearSuffix: "Year", //this is what you are looking for
}
});https://stackoverflow.com/questions/43490453
复制相似问题