标签:component number foo def javascrip rip export null region
export default class Test extends cc.Component{
//#region 声明
public foo():void;
public foo(a:string,b:string):string;
public foo(a:number,b:number):number;
//#endregion
//实现
public foo(a?:string|number,b?:string|number):any{
return null;
}
}
标签:component number foo def javascrip rip export null region
原文地址:https://www.cnblogs.com/kingBook/p/13371774.html