let someValue: any = 'this is a string' // 类型断言方式一: let strLength: number = (<string>someValue).length // 类型断言方式二:【推荐使用这种方式】 let strLength: number = (someValue as string).length
let someValue: any = 'this is a string' // 类型断言方式一: let strLength: number = (<string>someValue).length // 类型断言方式二:【推荐使用这种方式】 let strLength: number = (someValue as string).length