摘要: // 格式化日期,如月、日、时、分、秒保证为2位数function formatNumber (n) { n = n.toString() return n[1] ? n : '0' + n;}// 参数number为毫秒时间戳,format为需要转换成的日期格式function formatTim 阅读全文