开发者社区> 问答> 正文

tradingview时间的解决方案

tradingview时间的解决方案

展开
收起
北藏有名 2020-02-06 17:40:58 3386 0
1 条回答
写回答
取消 提交回答
  • 小白------

    customFormatters: { timeFormatter: { format: function(date) { var _format_str = '%h:%m'; return _format_str.replace('%h', date.getUTCHours(), 2). replace('%m', date.getUTCMinutes(), 2). replace('%s', date.getUTCSeconds(), 2); } }, dateFormatter: { format: function(date) { return date.getUTCFullYear() + '/' + date.getUTCMonth() + '/' + date.getUTCDate(); } } }

    2020-02-06 17:41:15
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
云端设计,与时间赛跑 立即下载
如何实现应用的持续发布 立即下载
《公共云本地化、低延时部署解决方案》 立即下载