2c0c48b7 by sunniejs

Merge branch 'vue-h5-template' of https://github.com/sunniejs/vue-h5-template into vue-h5-template

2 parents 75e045eb fb00619f
...@@ -37,7 +37,7 @@ export function parseTime(time, cFormat) { ...@@ -37,7 +37,7 @@ export function parseTime(time, cFormat) {
37 const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => { 37 const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
38 let value = formatObj[key] 38 let value = formatObj[key]
39 // Note: getDay() returns 0 on Sunday 39 // Note: getDay() returns 0 on Sunday
40 if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value ] } 40 if (key === 'a') { return ['日', '一', '二', '三', '四', '五', '六'][value] }
41 if (result.length > 0 && value < 10) { 41 if (result.length > 0 && value < 10) {
42 value = '0' + value 42 value = '0' + value
43 } 43 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!