01 2018 档案

typescript文件中 使用回调函数无法调用函数外的变量和方法的办法
摘要:util.ts class UtilService{ util( tis,callback:any ){ let num = 1; callback(tis,num); } } 使用该方法的文件 demo.ts class Demo{ //设置一个全局变量 count = 4; console.lo 阅读全文
posted @ 2018-01-11 19:46 温温婉婉 阅读(2059) 评论(0) 推荐(0)