大约有 353 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
... 请问下如何向数组里添加元素(数组类型为any) 尝试了this.objectsArray[i] = activityImg;和this.objectsArray.push(activityImg)等,都报错误! 2017-12-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20171222
...ay.Stage; class TestUI extends ui.test.testwhUI { constructor() { super(); this.mypan.vScrollBarSkin = ""; Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements); this.mypan.vScrollBar.on(Laya.Event.CHANGE, this, this.fitDOMElements_scroll); } private fitDOMElements(a, b, c, d, e, f): void { co...
来源: Laya_社区 发布时间: 20170720
...i < 10 ; i++) { score_data.push({ju_num:{text:i},score1:{text : i}}); } this.score_list.dataSource = score_data; this.score_list.vScrollBarSkin = "";(如果不加滚动条,是能显示出来值;但是加了这句后 就没有内容了)
来源: Laya_社区 发布时间: 20170405
...现。 2016-08-23 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: { this.on(laya.events.Event.MOUSE_DOWN ,this, this.onMouseDown); this.on(laya.events.Event.MOUSE_UP ,this, this.onMouseUp); } private onMouseDownX : number; private onMouseDownY :...
来源: Laya_社区 发布时间: 20160823
Dialog 设置this.mouseEnabled = true;后。再次点击Dialog自动退出 Dialog 里做个按钮电脑按钮设置this.mouseEnabled = true; 然后再次点击Dialog里的元素。Dialog自动退出 2019-01-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...
来源: Laya_社区 发布时间: 20190130
...400); Laya.loader.load("res/atlas/template/comp.json", Laya.Handler.create(this, onAssetLoaded2), null, Loader.ATLAS); function onAssetLoaded2() { Laya.class(MyBoot, "MyBootClass", MyPage2UI); var UI = new MyBootClass(); Laya.stage.addChild(UI); } function MyBoot() { MyBoot....
来源: Laya_社区 发布时间: 20160722
...类设备上的一致性与可用性。 代码中的使用示例如下: this.xx.left = 0; this.xx.right = 0; this.xx.top = 0; this.xx.bottom = 0; this.xx.CenterX = 0; this.xx.CenterY = 0; 3.2 数据源dataSource 在实际开发中,从网络获取的数据有时候与 UI 组件预期的数据结...
来源: Laya3.0_文档 发布时间: 20251010
...0°后边框位置偏移 let sp = new Laya.Sprite(); drawArr = [startX, 0, this.width, 0, this.width - startX, this.height, 0, this.height]; sp.graphics.drawPoly(0, 0, drawArr, fillColor, this.m_vo.c_StrokeColor, this.m_vo.c_StrokeThickness); 附件 : --> 2019-09-10 添加评论 免费帖 --> 分享...
来源: Laya_社区 发布时间: 20190910
...资源版本控制 ResourceVersion.enable("version.json", Handler.create(this, beginLoad), ResourceVersion.FILENAME_VERSION); } private function beginLoad():void { //加载引擎需要的资源 Laya.load...
来源: Laya_社区 发布时间: 20180725
...:e:Laya.Event,这个能数有阻止点击事件冒泡 点击事件: this.btnHome.on(Laya.Event.CLICK, this, this.homeClick); private homeClick(e) { //防止点击事件穿透 e.stopPropagation(); } 2018-10-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...
来源: Laya_社区 发布时间: 20180901