### js * 时间插件 dayjs https://dayjs.fenxianglu.cn/category/ ``` npm install dayjs --save import dayjs from 'dayjs' import utc from 'dayjs/plugin/utc' dayjs.extend(utc) const DATE_TIME_FORMAT = 'YYYY-MM-DD HH:mm:ss' export function formatUtcString( utcString: string, format: string = DATE_TIME_FORMAT ) { return dayjs.utc(utcString).format(format) } // export function formatTimestamp( // timestamp: number, // format: string = DATE_TIME_FORMAT // ) { // return '' // } ``` ### css * 统一浏览器样式 http://necolas.github.io/normalize.css/ ~~~ npm install normalize.css ~~~