• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 86 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0047 秒)

41. 如何获得浏览器的焦点状态? [ 68%]

...个回复 cuixueying 赞同来自: 1、浏览器是否失去焦点,监听Event.BLUR和Event.FOCUS即可,按下home键,可以触发BLUR事件,但是单纯的监听home键,这个属于是系统的功能,浏览器做不到! 2017-05-06 0 0 分享 微博 QZONE 微信 sevennqi 赞同来自: ...

来源: Laya_社区 发布时间: 20170506

42. laya.display.Input [ 67%]

... All Classes | Index | Frames No Frames InputProperties | Methods | Events | Constants Packagelaya.displayClasspublic class InputInheritanceInput Text Sprite Node EventDispatcher Object Input 类用于创建显示对象以显示和输入文本。 Input 类封装了原生的文本输入框...

来源: laya_api 发布时间: 20170929

43. 我想点击别的元素 让一个TextInput获取焦点怎么操作?不是点击TextInput本身获取焦点 [ 67%]

...似js的focus(),好像TextInput没有获取焦点的方法,只有Laya.Event.BLUR加回调 Laya_Aaron • 2017-12-14 19:00 刚看懂你的需求。。。 是点击一个按钮 让textinput输入区域被选中,闪烁光标 Laya_Aaron • 2017-12-14 19:44 TextInput 也有个 focus , 要把这...

来源: Laya_社区 发布时间: 20171214

44. laya.display.Stage [ 67%]

... All Classes | Index | Frames No Frames StageProperties | Methods | Events | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage ...

来源: laya_api 发布时间: 20170929

45. ts如何判断canvas是否失去焦点 [ 66%]

...当前标签被切换到后台后,重新切换回来时,你可以监听Event.FOCUS 舞台失去焦点时调度。比如浏览器或者当前标签被切换到后台后调度,你可以监听Event.BLUR   2017-02-20 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

来源: Laya_社区 发布时间: 20170220

46. 切换后台时,引擎如何判断是否停止定时器? [ 66%]

...structor() {         super();          this.stage.on(Laya.Event.FOCUS, this, this.onFocus);         this.stage.on(Laya.Event.BLUR, this, this.onBlur);         Laya.timer.frameLoop(1,this,this.onFrameLoop);     }      private onFrameLoop():void{       ...

来源: Laya_社区 发布时间: 20180724

47. 如何监测进入了静默模式?又如何知道唤醒了呢? [ 66%]

... Monica - 知识达人 赞同来自: 浏览器是否失去焦点,监听Event.BLUR和Event.FOCUS即可 不想让timer关闭的话可以看下js原生的settimeout 2017-07-13 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复...

来源: Laya_社区 发布时间: 20170713

48. laya.display.Stage [ 65%]

... All Classes | Index | Frames No Frames StageProperties | Methods | Events | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage ...

来源: Laya2.0_api 发布时间: 20190513

49. ts项目发布的时候报错 [ 63%]

...时,构建的时候报错。 点击发布,构建,然后出现报错 events.js:160 throw er; // Unhandled 'error' event ^ Error: spawn tsc ENOENT at exports._errnoException (util.js:1022:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32) at onErrorNT (internal/child_p...

来源: Laya_社区 发布时间: 20171208

50. 微信小游戏iOS滑出控制中心或通知中心,导致音乐自动停止。 [ 63%]

...提交 1 个回复 bpmf_d 赞同来自: // 失去焦点 Laya.stage.on(Laya.Event.BLUR,this,function(){}); // 获得焦点 Laya.stage.on(Laya.Event.FOCUS,this,function(){}); 可以试试这两个方法如果不行  就请提供一下可以复现的demo 2019-05-09 0 0 分享 微博 QZONE 微信 为...

来源: Laya_社区 发布时间: 20190509