| // eslint-disable-next-line no-console | // eslint-disable-next-line no-console | ||||
| console.log( | console.log( | ||||
| `%c \n DC-SDK \n %c \n 用数字描绘世界之美 %c \n | `%c \n DC-SDK \n %c \n 用数字描绘世界之美 %c \n | ||||
| 版本:${__VERSION__} - ${__TIME__.substr(0, 10)} | |||||
| 版本:${__VERSION__} - ${__TIME__} | |||||
| Cesium版本:1.78.0 | Cesium版本:1.78.0 | ||||
| 开发作者:${__AUTHOR__} | 开发作者:${__AUTHOR__} | ||||
| 网站主页: ${__HOME_PAGE__} | 网站主页: ${__HOME_PAGE__} |
| m = m < 10 ? '0' + m : m | m = m < 10 ? '0' + m : m | ||||
| let d = now.getDate() | let d = now.getDate() | ||||
| d = d < 10 ? '0' + d : d | d = d < 10 ? '0' + d : d | ||||
| let h = now.getHours() | |||||
| h = h < 10 ? '0' + h : h | |||||
| let min = now.getMinutes() | |||||
| min = min < 10 ? '0' + min : min | |||||
| let s = now.getSeconds() | |||||
| s = s < 10 ? '0' + s : s | |||||
| return `${now.getFullYear()}-${m}-${d} ${h}:${min}:${s}` | |||||
| return `${now.getFullYear()}-${m}-${d}` | |||||
| } | } | ||||
| module.exports = env => { | module.exports = env => { |