摘要: 1 //时间戳转换 2 function add0(m){return m<10?'0'+m:m } 3 function formatDate(timestamp) 4 { 5 //timestamp是整数,否则要parseInt转换 6 var time = new Date(timestamp); 7 var y = time.getFullYear(); ... 阅读全文
posted @ 2017-05-14 14:28 sunnyny 阅读(2739) 评论(0) 推荐(0) 编辑