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

  • 關於本站
  • 免責聲明