wf123537200 commented on issue #14085: URL: https://github.com/apache/echarts/issues/14085#issuecomment-764193982
简单来说,就是类似下面这样(00这种情况要再加个判断),也可以用一些类似 [moment.js](https://github.com/moment/moment)的库来转换 ` var d = new Date(1496888100000); var res = [d.getFullYear(), d.getMonth() + 1, d.getDate()].join('/') + ' ' + [d.getHours(), d.getMinutes(), d.getSeconds()].join(':'); console.log(res);` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
