Format a value inside interpolated string in typescript

前端 未结 0 945
[愿得一人]
[愿得一人] 2020-11-30 02:14

I need to format a string in Typescript like this:

`${date.getHours()}:${date.getMinutes()}:${date.getSeconds()}`

but I get this for example:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题