TypeScript
berlin5151
千里马
展开
-
TypeScript 引入第三方包,报无法找到模块错误
https://www.jianshu.com/p/35742227738e转载 2020-07-24 11:29:51 · 1548 阅读 · 0 评论 -
typescript建立事件机制
//Event.tsexport const EventType = { EVENT_NAME: "EVENT_NAME",};export const EventCenter = { _events: {}, addListener:function(eventname:string, callback:Function, target:cc.Component) { if (typeof(eventname) == "string" || ..原创 2020-07-23 14:24:09 · 736 阅读 · 0 评论