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

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

41. Laya tiledmap 监听事件未响应 [ 73%]

...= true;         _mapSprite.hitTestPrior = true;         Laya.stage.focus = _mapSprite;         let event = _mapSprite.on(Laya.Event.CLICK, this, () => {             LogUtil.w("响应点击事件")         })     }   尝试使用focus 好像也没有响应 请问大佬们...

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

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

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

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

43. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 71%]

...re e', e); } 返回的信息: Event _stoped: false currentTarget: Stage {focus: null, designWidth: 1307, designHeight: 758, canvasRotation: false, canvasDegree: 0, …} nativeEvent: MouseEvent {isTrusted: true, screenX: 906, screenY: 460, clientX: 457, clientY: 278, …} target: Stage {focus: null...

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

44. laya.ui.UIEvent [ 71%]

...tring = error[static] 定义 error 事件对象的 type 属性值。Event FOCUS : String = focus[static] 定义 focus 事件对象的 type 属性值。Event FOCUS_CHANGE : String = focuschange[static] 定义 focuschange 事件对象的 type 属性值。Event FRAME : String = enterframe[static] ...

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

45. laya.ui.UIEvent [ 70%]

...tring = error[static] 定义 error 事件对象的 type 属性值。Event FOCUS : String = focus[static] 定义 focus 事件对象的 type 属性值。Event FOCUS_CHANGE : String = focuschange[static] 定义 focuschange 事件对象的 type 属性值。Event FRAME : String = enterframe[static] ...

来源: laya_api 发布时间: 20170929

46. 飞机大战源码发微信小游戏提示VM122:1 gameThirdScriptError [ 70%]

...戏提示VM122:1 gameThirdScriptError VM122:1 gameThirdScriptError window.focus is not a function TypeError: window.focus is not a function at Function.t.__init__ (http://127.0.0.1:62307/game/code.js:1881:1176) at Object.Laya.init (http://127.0.0.1:62307/game/code.js:150:34) at new t (http://127.0.0...

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

47. 在web端运行时,使用输入框,在加载的第一次手动输入时,会出现底部有个黑色块的问题 [ 69%]

...个黑色块的问题 在执行到laya.core.js中第16443行代码的input.focus()后就会出现黑色块,在重新点击之后黑色块会消失,有点影响体验,但input.focus()我暂时没找到定义,在注释之后不会出现黑色块,但web的输入框选中要点击两次才会...

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

48. 微信小游戏,请先初始化小游戏适配库 [ 65%]

...:3 (anonymous) @ gamePage.html:156 WAGame.js:3 gameThirdScriptError window.focus is not a function TypeError: window.focus is not a function     at Function.Browser.__init__ (http://127.0.0.1:51176/game/code.js:7140:21)     at Function._$GET_clientWidth (http://127.0.0.1:51176/game/code.js:7057:...

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

49. 如何能监听到TouchStart和TouchEnd事件 [ 64%]

...性值。*/         static BLUR: string;         /** 定义 focus 事件对象的 type 属性值。*/         static FOCUS: string;         /** 定义 visibilitychange 事件对象的 type 属性值。*/         static VISIBILITY_CHANGE: string;         /** ...

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

50. 如何监听移动端软键盘的弹出和收回? [ 63%]

...ut.x=100; textInput.y=200; addChild(textInput); textInput.addEventListener(FocusEvent.FOCUS_IN,onFocusIn); textInput.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut); private function onFocusIn(event:FocusEvent):void { textInput.text="你的键盘打开了"; } private function onFocusOut(event:Focu...

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