Skip to content

细数 TS 中那些奇怪的符号 #28

Description

@YutHelloWorld

细数 TS 中那些奇怪的符号

  • ! 非空断言操作符
  • ?. 运算符
  • ?? 空值合并运算符
  • ?: 可选属性
  • & 运算符
  • | 分隔符
  • _ 数字分隔符
  • Type 语法
  • @xxx 装饰器
  • #XXX 私有字段
    image
    image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions