(time)
| 601 | } |
| 602 | } |
| 603 | function timeFormat(time) { |
| 604 | let date; |
| 605 | if (time) { |
| 606 | date = new Date(time) |
| 607 | } else { |
| 608 | date = new Date(); |
| 609 | } |
| 610 | return date.getFullYear() + '-' + ((date.getMonth() + 1) >= 10 ? (date.getMonth() + 1) : '0' + (date.getMonth() + 1)) + '-' + (date.getDate() >= 10 ? date.getDate() : '0' + date.getDate()); |
| 611 | } |
| 612 | function jsonParse(str) { |
| 613 | if (typeof str == "string") { |
| 614 | try { |