* @description 打印颜色 * @param text * @param color
(color, ...text)
| 2001 | * @param color |
| 2002 | */ |
| 2003 | function printColor(color, ...text) { |
| 2004 | const textFormatted = text |
| 2005 | .map((t) => (typeof t === 'object' ? JSON.stringify(t) : String(t))) |
| 2006 | .join(' '); |
| 2007 | console.log(`%c[${formatDateTime()}] %c${textFormatted}`, '', `color: ${color}`); |
| 2008 | } |
| 2009 | /** |
| 2010 | * @description html进度条 |
| 2011 | * @param title |
no test coverage detected