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