2017年7月31日

JS获取当前日期时间

摘要: 1.YYYY-MM-DD function formatDate(date, pattern) { if(typeof pattern == 'undefined'){ pattern = 'yyyy-MM-dd';} var str = '';if (date instanceof Date) { 阅读全文

posted @ 2017-07-31 13:29 ranyonsue 阅读(1387) 评论(0) 推荐(0) 编辑

导航