大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0086 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... 新内容 滑动(子物体一个),好像就能直接滑动到末尾 this.getChildByName("panelName").scrollTo(scrollX, 0); 引擎是 layaair 1.7, 由于是300 毫秒,进入场景会看到 内容跳动 2017-04-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170410
... list.vScrollBarSkin = ""; list.mouseHandler = new Handler(this, onSelect) list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = new Handler(this, updateItem); return list; } function updateItem(cell, index...
来源: Laya_社区 发布时间: 20180724
...承类 var StartResource = function StartResource(){ StartResource.super(this); //LOGO 图标 访问地址 var href='https://list.tmall.com/search_product.htm?q=%BB%A8%D3%A1%D0%B6%D7%B1%CB%AE&type=p&spm=a220m.1000858.a2227oh.d100&xl=%BB%A8%D3%A1_2&from=.list.pc_1_suggest'; if(...
来源: Laya_社区 发布时间: 20180810
...么写 var sg_sign = (function(_super){ function sg_sign(){ sg_sign.super(this); this.btn_wxsign.on(Laya.Event.CLICK,this,this.onWxSign); this.reset(); } Laya.class(sg_sign,"sg_sign",_super); var _proto = sg_sign.prototype; _proto.reset = function(){ Laya.SoundManager.playMusic('res/sound/sign_bgm.m...
来源: Laya_社区 发布时间: 20170725
...代码如下: var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite()...
来源: Laya3.0_文档 发布时间: 20240910
...骰子会触发事件。 代码如下: 骰子的点击事件代码: this.items.shaizi.on("click", this, function(e) { e.stopPropagation(); if(!Game.runing) { Game.runing = true; Game.stepNum = Math.floor(Math.random() * 6) + 1; console.log(Game.stepNum) Animate.role(Game.stepNum); } },[this.it...
来源: Laya_社区 发布时间: 20180601
...,true); Laya.stage.bgColor = "#000000"; ChangeSize(); Laya.timer.once(1000,this,function start():void{ Laya.stage.on(Event.RESIZE,this,onResize); }); } protected function HengPing(): void { trace("设置横屏" ); var layaCanvas:Object = Browser.getElementById("layaCanvas"); layaCanvas.width = Br...
来源: Laya_社区 发布时间: 20190520
1.7.15运行包Warning!,this class[MiniAdpter] already exist: Object 什么意思 1.7.15运行包Warning!,this class[MiniAdpter] already exist: Object 什么意思 2018-01-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...
来源: Laya_社区 发布时间: 20180115
... 1 个回复 cuixueying 赞同来自: 1、你的写法是: console.log("this.roleName.indexOf(this.shieldArray):" + this.roleName.indexOf(this.shieldArray));其中: this.roleName为"暗诗炎舞" this.shieldArray为“” 运行:"暗诗炎舞".indexOf(""),,当没有写任何东西的时候...
来源: Laya_社区 发布时间: 20170828
... 微博 QZONE 微信 gls_laybox 赞同来自: //关闭特效自己实现 this.closeEffect = Laya.Handler.create(this,this.onCloseEffect,null,true); //具体的实现代码 _proto_.onCloseEffect = function(){ Laya.Tween.to(this,{ x:-100 //动画结束就关闭 },1000,null,Laya.Handler.create(this,...
来源: Laya_社区 发布时间: 20170809