大约有 1,155 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0052 秒)
Laya_社区(864) Laya3.0_api(80) Laya2.0_文档(72) Laya_示例(52) Laya2.0_示例(48) Laya3.0_文档(35) laya_api(2) Laya2.0_api(2)
... Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "第{n=1}页"; //显示文本的初始化内容 } onStart(): void { let page: number = 1; Laya.timer.frameLoop(10, this, () => { page += 1; //在定时器中让变量page每次自增1 this.txt.setVar("n", p...
来源: Laya3.0_文档 发布时间: 20240910
...lStroke = 10; rightBtn.x = 100; rightBtn.y = 200; rightBtn.on(Event.CLICK, this, clickHandler); rightBtn.clickHandler = Handler.create(this, function () { console.log('click handler'); }); function clickHandler () { console.log('on click') } Stage.addChild(rightBtn); 请问一下,为什么事件...
来源: Laya_社区 发布时间: 20180309
...选择的索引:" + index); let checkBoxItem:Laya.CheckBox = this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox; if(checkBoxItem!=null){ switch(checkBoxItem.name.trim()){ case "0":{ ...
来源: Laya_社区 发布时间: 20241014
...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...
来源: Laya_社区 发布时间: 20151202
...s); if (interval != void 0) { this.interval = interval; } this.on(Laya.Event.COMPLETE, this, () => { this.destroy(); }); this.frameIndex = 0; ...
来源: Laya_社区 发布时间: 20201211
...ring, handler: Laya.Handler, aniMode: number = 0) { this._handler = handler; this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete, [aniMode]); this.mFactory.loadAni(url); ...
来源: Laya_社区 发布时间: 20200618
... //关闭效果 hideEffect(): void { Laya.Tween.to(this,{y:Laya.stage.height,alpha:0},200,Laya.Ease.linearIn); } import { ui } from "./ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = L...
来源: Laya_社区 发布时间: 20190121
... private var m_btn_auto:Button; m_mc_trade.on(Event.CLICK,this,onBtnClick); m_btn_auto.on(Event.CLICK,this,onBtnClick); 我有设置了点击事件了,但在点击事件onBtnClick内console.log('s')没有打印出来。而挂机按钮的就可以打印得到。这是怎么回事...
来源: Laya_社区 发布时间: 20170412
关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....
来源: Laya_社区 发布时间: 20180719
...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...
来源: Laya_社区 发布时间: 20151204