Typescript 把带参数的函数当作参数的写法

loadAsset(path:string, type:typeof cc.Asset, callback:(asset:typeof cc.Asset)=>void){ cc.loader.loadRes(path, type, (e, res)=>{ if(e){ console.log(e);
相关文章
相关标签/搜索