大约有 23 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0021 秒)
... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...
来源: Laya3.0_api 发布时间: 20231115
... class MyItem extends Laya.GButton { //注意!在onConstruct里才可以获取子对象,建议在这里做初始化,不要在构造函数里做初始化 onConstruct() { //this.xx = this.getChild("xx"); //this.xx.on(Laya.Event.CLICK, this, this.onClick); } sayHello() { console.log("Hello from M...
来源: Laya3.0_文档 发布时间: 20251128
....json"; //fetch取到的是原始数据,但没有缓存,无法用getRes获取 Laya.loader.fetch(jsonPath, "json").then((_json) => { if (_json.bagList && _json.bagList.length > 0) { //把json数据传递给list组件的数据源属性array this.bagList.array = _json.bagList; } }); }...
来源: Laya3.0_文档 发布时间: 20251010