formatDate(datetime,splitStr) {
splitStr = splitStr||"";
var year = datetime.getFullYear(),
month = ("0" + (datetime.getMonth() + 1)).slice(-2),
date = ("0" + datetime.getDate()).slice(-2),
hour = ("0" + datetime.getHours()).slice(-2),
minute = ("0" + datetime.getMinutes()).slice(-2),
second = ("0" + datetime.getSeconds()).slice(-2);
// 返回
return {
time:year + "-"+ month +"-"+ date,
timeStr:year + splitStr + month + splitStr + date,
timeStrA:year + '/' + month + '/' + date+ " "+ hour+':'+minute+':'+second,
timeStrB:year + '-' + month + '-' + date+ " "+ hour+':'+minute+':'+second,
year:year,
month:month,
date:date,
hour:hour,
minute:minute,
second:second
};
}