1条回答 默认 最新
- Go 旅城通票 2016-09-01 03:45关注
自己配置formatter,不多多个0又没什么大碍
formatter function A function to format the date, the function take a 'date' parameter and return a string value. The example below shows how to override the default formatter function.
$.fn.datebox.defaults.formatter = function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return m+'/'+d+'/'+y;
}解决 无用评论 打赏 举报