logo
  • 教程列表
  • SO官方文档
  • TypeScript 核心类型
    • 字符串文字类型
    • 元组
    • 布尔
    • 交叉类型
    • 数
    • 字符串
    • 排列
    • 枚举
    • 任何
    • void
    • 函数参数和返回值中的类型。数
    • 函数参数和返回值中的类型。字符串
    • const Enum
  1. StackOverflow 文档
  2. TypeScript 教程
  3. TypeScript 核心类型
  4. 任何

任何

Created: November-22, 2018

当不确定类型时,any 可用:

let anything: any = 'I am a string';
anything = 5; // but now I am the number 5
  • void
  • 枚举

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明