看教程看到了这么一个教程
interface Interface {
names:string
(arg:number):string
}
这个怎么解释? 一个有name 属性 返回类型为string 的函数?
看教程看到了这么一个教程
interface Interface {
names:string
(arg:number):string
}
这个怎么解释? 一个有name 属性 返回类型为string 的函数?
names: string
, names 为必要属性number
, 参数名为 arg 的参数;string
的值
转自 Stack Overflow src