Typescript: String and String Template relationship - Conversion?

后端 未结 0 1482
谎友^
谎友^ 2021-01-15 05:30

I am wondering why I can do this:

let stT: `${number}%` = "5435%"

But not this:

let str: string = "5435%"
         


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