JS日期格式化(支持格式YYYY-MM-DD,HH:MM:SS,YYYY-MM-DD HH,YYYY-MM-DD HH:MM:SS)
function formatDate(date, format) {
if (date != null && format != null && format != "") {
var nowDate = new Date(date);
var year = nowDate.getFullYear();
var month = nowDate.getMonth() + 1 < 10 ? "0"
+ (nowDate<


290

被折叠的 条评论
为什么被折叠?



