index.ts

function foo(name: string, age?: number) {
  console.log(name + age);
}

foo("a"); // "aundefined"

相关文章:

  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-23
  • 2021-08-06
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案