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

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

281. 鼠标交互-键盘交互 [ 83%]

...p); } /** 键盘按下处理 */ onKeyDown(e) { keyDownList[e["keyCode"]] = true; } /** 键盘抬起处理 */ onKeyUp(e) { delete keyDownList[e["keyCode"]]; } /** 添加提示文本 */ createLogger() { const Text = Laya.Text; logger = new Text(); logger.size(Laya.stage.width, Laya.stage.height); logg...

来源: Laya2.0_示例 发布时间: 20240930

282. laya调用input 标签没反应 [ 83%]

...的。var ne = document.createEvent('MouseEvents'); ne.initEvent('click', true, true); document.getElementById('myfile').dispatchEvent(ne); 不过在laya里面调用并没有效果。 代码是确认以及调用的。__JS__("var ne = document.createEvent('MouseEvents'); ne.initEvent('click', true, t...

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

283. 做了一个最简单的显示微信子域的程序,但是报错Cannot read property 'USER_DATA_PATH' of undefined [ 83%]

...8-11-19 12:26 在子域项目的main.js里加一段代码Laya.isWXPosMsg = true;Laya.isWXOpenDataContext = true;(主域这里是false) wulilioo • 2018-11-19 13:02 @内涵tv何吓吓:多谢回复。 我现在 主域是 : Laya.isWXPosMsg = true; Laya.isWXOpenDataContext = false; 子域是: Laya....

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

284. laya.ui.Tab [ 83%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Nu...

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

285. laya.d3.core.Sprite3D [ 83%]

...含指定的 Node 节点对象 。 Node  destroy(destroyChild:Boolean = true):void[override] 销毁此对象。destroy对象默认会把自己从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。 destroy时会移除自身的事...

来源: laya_api 发布时间: 20170929

286. laya.ui.UIUtils [ 83%]

...并返回数组副本。 UIUtils  gray(traget:Sprite, isGray:Boolean = true):void[static] 给指定的目标显示对象添加或移除灰度滤镜。 UIUtils  toColor(color:uint):String[static] 转换uint类型颜色值为字符型颜色值。 UIUtilsPublic Constants ConstantDefined By  esca...

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

287. laya.ui.UIUtils [ 83%]

...并返回数组副本。 UIUtils  gray(traget:Sprite, isGray:Boolean = true):void[static] 给指定的目标显示对象添加或移除灰度滤镜。 UIUtils  toColor(color:uint):String[static] 转换uint类型颜色值为字符型颜色值。 UIUtilsPublic Constants ConstantDefined By  esca...

来源: laya_api 发布时间: 20170929

288. laya.ui.UIComponent [ 83%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite  bottom : Number 从组件底边到其内...

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

289. laya.utils.Handler_API3.0 [ 83%]

...Defined in laya/utils/Handler.ts:20 表示是否只执行一次。如果为true,回调后执行recover()进行回收,回收后会被再利用,默认为false 。 Methods clear clear(): Handler Defined in laya/utils/Handler.ts:83 清理对象引用。 Returns Handler recover recover(): void Defi...

来源: Laya3.0_api 发布时间: 20231115

290. laya.ui.RadioGroup [ 83%]

...变化,如果想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 Sprite bgColor : String背景颜色Box blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite bottom : Nu...

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