大约有 258 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0112 秒)
...⽂档中有详细 说明。 target 定义为 es2017 是为了⽀持 async 函数,但这个配置没有默认 lib 列表,所以 参考官⽅⽂档对 --target es6 使⽤的 lib 列表,补充 es2017 类型库即可。 其实就是说,如果 target 不是 es2017 就是不⽀持 async 函数,...
来源: Laya_社区 发布时间: 20200903
... 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
...信 yao 赞同来自: 给Laya.stage添加点击事件监听,然后监听函数参数的target判断是不是button来做。 Laya.stage.on(Laya.Event.CLICK, this, function(res:Laya.Event){ if (res.target instanceof Laya.Button){ // click button } }) 2018-12-01 0 0 分享 微博 QZONE 微信 为什...
来源: Laya_社区 发布时间: 20180706
... 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 发布时间: 20231102
...件通知。 * @param type 事件的类型。 * @param caller 事件侦听函数的执行域。 * @param listener 事件侦听函数。 * @param args (可选)事件侦听函数的回调参数。 * @return 此 EventDispatcher 对象。 */ on(type: string, caller: any, listener: Function, args: an...
来源: Laya3.0_文档 发布时间: 20251010
...认为匀速运动。 * @param complete 结束回调函数。 * @param delay 延迟执行时间。 * @param coverBefore 是否覆盖之前的缓动。 * @return 返回Tween对象。 */ ...
来源: Laya_社区 发布时间: 20180621
...ext当标题,加了版权信息,并且为版权信息注册了个匿名函数,点击会跳转到我的个人网站。// 设定背景 var background = new Laya.Sprite(); background.loadImage("linkgame_back.jpg"); background.cacheAsBitmap = true; Laya.stage.addChild(background); // 设定标题 ...
来源: Laya_社区 发布时间: 20160623
... 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
...使用Gyroscope.instance获取唯一的Gyroscope引用,请勿调用构造函数。 listen()的回调处理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者...
来源: Laya2.0_api 发布时间: 20190513