Commit 4111ff86 by liwk

修改日期插件

1 parent aea095d8
function format(formatStr) { function format(formatStr) {
const date = this const date = this
var zeroize = function(value, length) { var zeroize = function(value, length) {
if (!length) { let zeros = ''
length = 2 if (!length) length = 2
} value = value.toString()
for (var i = 0, zeros = ''; i < (length - value.length); i++) { for (let i = 0; i < (length - value.length); i++) {
zeros += '0' zeros += '0'
} }
return zeros + value return zeros + value
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!