let str: number | string str = 10 str = '10'
// | 联合类型 变量可以是两种类型之一 let timer:number | null = null timer = setTimeout()