Browse Source

上传文件至 ''

typescript文件
master
parent
commit
b562d043f3
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      person.tsx

+ 11
- 0
person.tsx View File

@@ -0,0 +1,11 @@
interface IPerson {
name: string;
age: number;
}
function test(opt: IPerson) {
let key: (keyof IPerson);
for (key in opt) {
console.log(opt[key]);
}
}

Loading…
Cancel
Save