大约有 3,124 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)
...: 675 关注: 2 人 陆仁毅 • 2019-07-30 18:01 改下protobuf的d.ts。export=>declare。然后把namespace的相关引用改下就行。或者把js放到d.ts同级,把js改成es6 Channel.F • 2019-07-30 18:16 辛苦大神, 我先试试,那如果第二个方案,我把js放到d.ts的...
来源: Laya_社区 发布时间: 20190730
...import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class BGPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("BGPage"); } } export class MonkeyPageUI extends View { constructor(){ super()} cr...
来源: Laya_社区 发布时间: 20181014
...s里面。 有谁碰到过这样的问题? 一个common.ts里面定义了export default class SDispatcher implements ISDispatcher{},然后在其他类里面继承。并导包。export default class xxxx extends SDispatcher{},在vs里面没有发现报错。进行指令编译后,运...
来源: Laya_社区 发布时间: 20200817
...import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class AttackUI extends View { public btn_attack:Laya.Button; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码: import { ui }...
来源: Laya_社区 发布时间: 20180926
关于位图字体使用问题,参照官方文档,显示不出 export default class AllText extends ui.examples.text.BitmapFontUI ui.examples.text.BitmapFontUI 找不到继承的类 laya is not define 参见 demo 附件 : --> Test1.rar 2020-11-29 添加评论 免费帖 --> 分享 微博 ...
来源: Laya_社区 发布时间: 20201129
...不正常。 哪种是对的?在laya的ide里, 怎么才能import一个export的类或一个export的模块? 于是我就写了两个demo 我在VS Code里测了,发现可以正常,但LayaAir IDE不正常。 源码我上传了。 laya的是TestImport.rar vscode的是vscode.rar 关键的...
来源: Laya_社区 发布时间: 20171116
...代码的方法,如下: a.ts ------------------------------ module AM{ export class AC { public static myname:string = "I'm AC!"; } } export default AM; b.ts ---------------------------- module AM{ export class BC { public static myname:string = "I'm BC!"; } } export default AM; c.ts -----------...
来源: Laya_社区 发布时间: 20181026
... VSCode里script/base下新建BaseScene.ts,继承Laya.Scene BaseScene.tsexport namespace base{ export class BaseScene extends Laya.Scene{ constructor(){ super(); console.log('BaseScene:我是基类BaseScene,我的子类是导出类,我的父类是场景类'); } } } 导出UI 导出后layaMaxUI.ts...
来源: Laya_社区 发布时间: 20200827
...化的两个分支如下 function (e) { // if ("object" == typeof exports && "undefined" != typeof module) // module.exports = e(); // else if ("function" == typeof define && false) // define([], e); // else { var f; "undefined" !=...
来源: Laya_社区 发布时间: 20180731
...本的? 没有项目看不了。。 猜测是你 gameview 没有 export default 2019-08-26 0 1 分享 微博 QZONE 微信 履超网络~渠道经理 赞同来自: 解决了,在声明GameView类时必须用export default,不能只写export,感谢Aaron 2019-08-26 0 0 分享 微博 QZO...
来源: Laya_社区 发布时间: 20190824