()
| 24 | let clear: () => void; |
| 25 | |
| 26 | export function initLogs () { |
| 27 | if (IS.ie) { |
| 28 | // ie 不支持缓存使用 log等方法 |
| 29 | log = (...args: any[]) => {return console.log(...args);}; |
| 30 | table = (...args: any[]) => {return console.table(...args);}; |
| 31 | clear = () => {return console.clear();}; |
| 32 | } else { |
| 33 | log = console.log; |
| 34 | table = console.table; |
| 35 | clear = console.clear; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | export function clearLog () { |
| 40 | if (config.clearLog) |