[LayaAirIDE 2.0]LayaAir2.0的GameConfig.ts

模块化(命名空间) VIEW等ts代码使用 moudule xxx{......}的书写方式 : 
module app{
/**
* 登录加载界面
* @author Husz
*/
export class LoadingView extends Laya.View implements small_lib.ILoadingView
那么在GameConfig将会报错 , 因为会自动刷新. 
除非采用 , 如下:
/**
* 登录加载界面
* @author Husz
*/
export default class LoadingView extends Laya.View implements small_lib.ILoadingView
 
module的方案很更好好啊 , 如何实现module的方案 ????
已邀请:

Aar0n

赞同来自:

module 前面加 export

177*****949

赞同来自:

明白 , 我是想问有没有不在module前面加export的方法 . 

要回复问题请先

商务合作
商务合作