index.ts
function foo(name: string, age?: number) { console.log(name + age); } foo("a"); // "aundefined"
posted on 2021-09-09 10:49 aisowe 阅读(4243) 评论(0) 编辑 收藏 举报