摘要: var SIGN_REGEXP = /([yMdhsm])(\1*)/g; var DEFAULT_PATTERN = 'yyyy-MM-dd'; function padding(s, len) { var len = len - (s + '').length; for (var i = 0; i < len; i++) { s = '0' + s; } return... 阅读全文
posted @ 2017-06-28 14:18 sunsian 阅读(370) 评论(0) 推荐(0) 编辑