大约有 353 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
...}}); data.push({m_label:{text:"抱歉,我有事,要先走一步"}}); } this.m_list.array = data; 代码 如上每一个label 都给他一个点击事件 请问该怎样写 2018-03-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20180301
...的方法呀 //开始转动 function onBtnClick(){ Laya.timer.frameLoop(1, this, scroller); } //转动轮子方法 var time = 30, //默认转动间隔 ih = 0, //初始滚动高度 speed = 5, //速度 boxHeight = this.box.height * 2; // 盒子高度 function scroller(type){ //如果滚动到了底部...
来源: Laya_社区 发布时间: 20180326
...mage; constructor() { // 鼠标事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.onMouseUp, [true]); } /** 按钮动画处理 */ private hitTest(t: Laya.Image) { let s = t.s...
来源: Laya_社区 发布时间: 20180731
...ent){ var index=element._getIndexInList(); this.length--; if (index!==this.length){ var end=this.elements[this.length]; this.elements[index]=end; end._setIndexI...
来源: Laya_社区 发布时间: 20190820
...og { export class WanF extends ui.dialog.WanFUI { constructor() { super(); this.rotation = 90; this.pos(1060, 280); let panel = new Laya.Panel(); panel.size(638, 527); panel.vScrollBarSkin = "CommDialog/vscroll.png"; this.sp_wanfa.addChild(panel); let t = new Laya.Label(); t.width = 638; t.fontSize ...
来源: Laya_社区 发布时间: 20180426
... 下面的圆形金币是图片,我添加了 on(Laya.Event.MOUSE_DOWN, this,this.mouseHandlerDown,); on(Laya.Event.MOUSE_UP, this,this.mouseHandlerUp,[i]);[/i] [i] [/i] [i]为什么在这个bg.png上面点击,下面的金币也会有点击事件?[/i] 附件 : --> 2018-01-31 添加评论 免费...
来源: Laya_社区 发布时间: 20180131
...cene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); } 点击就报错 挂在scene3d节点上的脚本,onAwake(){ Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown);} 点击就报错 附件 : --> 2023-12-20 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20231220
...28 关注: 2 人 Y_Yao • 2017-05-16 10:26 function daoju() { daoju.super(this); this.Tab_ZM.selectHandler = new Laya.Handler(this, onSelect); } function onSelect(index) { console.log("当前选择的标签页索引为:" + index);); this.Tab_ZM.on(Event.CLICK,this,onDaoju(index)); } 想...
来源: Laya_社区 发布时间: 20170516
...函数里面 事件侦听函数的执行域 的详解 sp.on(Event.CLICK, this, fun) 有时候是this,有时候是null 到底怎么区分这个 2016-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 LayaBB...
来源: Laya_社区 发布时间: 20161202
...的? STATICATTR$(TestPageUI, ['uiView',function(){return this.uiView={"type":"View","child":[{"props":{"x":0,"y":0,"skin":"comp/bg.png","sizeGrid":"30,4,4,4","width":600,"height":400},"type":"Image"},{"props":{"x":41,"y":56,"skin":"comp/button.png","label":"点我赋值","width":150,...
来源: Laya_社区 发布时间: 20170330