interface IPerson{
name:string,
age:number,
readonly id:number
}
let geyao:IPerson={
age:18,
name:"string",
id:1
}
//可选属性?
react18-学习笔记9-interface初探
最新推荐文章于 2023-08-01 22:30:08 发布
interface IPerson{
name:string,
age:number,
readonly id:number
}
let geyao:IPerson={
age:18,
name:"string",
id:1
}
//可选属性?