前端开发经常使用方法 - formatTime - 时间戳格式转换以及计算 - 戴向天

你们好!我叫戴向天。前端 QQ:809002582web 前端开发经常使用方法 - formatTime - 时间戳格式转换以及计算 代码以下?svg /** * 时间戳格式转换以及计算 * */ export function formatTime (time = 0, format = 'YYYY-MM-DD hh:mm:ss') { const now = new Date().g
相关文章
相关标签/搜索