126. 字符串转换为数字

困难1

将字符串字面量转换为数字,行为类似于 Number.parseInt

例如:

type A = ToNumber<'0'> // expected to be 0
评论(0)
题库

TypeScript

加载中...