大约有 2 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0017 秒)
... ```typescript //单模块 declare module '*.glsl' { const value: string; export default value; } declare module CANNON { //在声名的模块里定义类型 export class Demo { constructor( options: Object ); addScene( title: string, initfunc: Function ): void; restartCurrentScene(): void; } } //...
来源: Laya2.0_文档 发布时间: 20210715
...b.ts代码如下所示: ```javascript /** * 分包 */ module subpackage{ export class b{ private GameMain:any; private ui:any; constructor(){ //监听按钮btnA的点击事件,触发后处理 this.GameMain.newUI.btnA.on(Laya.Event.CLICK, this, this.showB); } //显示B页 private showB():void { t...
来源: Laya2.0_文档 发布时间: 20210715