主页
TypeScript
TypeScript 类型断言
demo_casting_as
运行 ❯
×
更改方向
保存代码
更改主题
let x: unknown = 'hello'; console.log((x as string).length);
5