Skip to content

强制转换类型

  • (x as string)
  • (<string>x)

报错的话可以先把类型转为unknown,再二次转换