大约有 258 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231115
ts如何调用js函数? 我有一段js代码: function InitTakePhoto() { var options = { thumbBox: '.thumbBox', spinner: '.spinner', imgSrc: '' } var cropper = $('.imageBox').cropbox(options); $('#file').on('change', function(){ var reader = new FileReader(); reader.onload = function(e) { optio...
来源: Laya_社区 发布时间: 20180101
... Parameters type:String — 事件的类型。 caller:* — 事件侦听函数的执行域。 listener:Function — 事件侦听函数。 onceOnly:Boolean (default = false) — (可选)如果值为 true ,则只移除通过 once 方法添加的侦听器。 ReturnsEventDispatcher — 此 Eve...
来源: Laya2.0_api 发布时间: 20190513
在UI类里调用启动类的静态函数失败了 这是我的启动类 // 程序入口 class GameMain { constructor() { Laya.init(600, 400); Laya.stage.bgColor = "#123456"; Laya.loader.load([ { url: "res/beijing/beijing2.png", type: Laya.Loader.IMAGE }, { url: "res/atlas/comp.png", type: Laya.Loa...
来源: Laya_社区 发布时间: 20180507
...index: number axis索引 type: string 事件类型 caller: any 事件侦听函数的执行域。 listener: Function 事件侦听函数。 Returns void addButtonEvent addButtonEvent(index: number, type: string, caller: any, listener: Function): void Defined in laya/d3/WebXR/core/WebXRInput.ts:143 add...
来源: Laya3.0_api 发布时间: 20231115
...使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者...
来源: Laya3.0_api 发布时间: 20231115
...r Accelerator.instance获取唯一的Accelerator引用,请勿调用构造函数。 listen()的回调处理器接受四个参数: acceleration: 表示用户给予设备的加速度。 accelerationIncludingGravity: 设备受到的总加速度(包含重力)。 rotationRate: 设备的自转速...
来源: Laya3.0_api 发布时间: 20231115
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: any[] Returns EventDispatcher offAll...
来源: Laya3.0_api 发布时间: 20231115
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231115
... Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:113 Parameters type: string caller: any Optional listener: Function Optional args: a...
来源: Laya3.0_api 发布时间: 20231115