kingBook

导航

TypeScript 声明函数类型变量

class Test {
    constructor() {
    }

    private _callback:Function;
    private _callback:(a:number, b:string)=>void;

}

posted on 2024-07-21 17:18  kingBook  阅读(11)  评论(0编辑  收藏  举报