大约有 1,488 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0049 秒)
...oundChannel.prototype; /** *播放声音 */ _proto.play = function () { // if (this.url.indexOf("music.d") != -1) { // console.log("play", this.url) // console.trace("play", this.url) // } Laya.SoundManager.addChannel(this); this.isStopped = false; this._clearBufferSource(); if (!this.audioBuffer) {...
来源: Laya_社区 发布时间: 20201014
...据 */ static handleSyncMessage(eventName: string, data: string): string { if (eventName == "syncMessage") { return "sync message from platform"; } return "default sync result"; } /** * 异步事件 * @param eventName 事件名称 * @param data 数据 * @param cb callback */ static async handleAsync...
来源: Laya3.0_文档 发布时间: 20251010
...Ios=true; window.top.onresize = function () { var u = navigator.userAgent; if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) { isIos=false; }else if(!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)){ isIos=true; } var windowWidth=true; if(window.document.body.clientWidth>document.body.cli...
来源: Laya_社区 发布时间: 20190313
...= z = last_x = last_y = last_z = 0;'); __JS__('var canShake = 1'); __JS__('if (window.DeviceMotionEvent){window.addEventListener("devicemotion", deviceMotionHandler, false)'); __JS__('}else{alert("你的设备不支持DeviceMotion事件");}'); __JS__('function deviceMotionHandler(eventData){var acce...
来源: Laya_社区 发布时间: 20160110
... public static GetInstance(): CommandBuffer_Outline{ if(this.instance == null) this.instance = new CommandBuffer_Outline(); return this.instance; } public init(): void { //使用之前必须先初始化 ...
来源: Laya_社区 发布时间: 20210203
...空的逻辑没有了 //如果对象被销毁,则立即停止缓动 /*[IF-FLASH]*/if (target is Node && target.destroyed) return clearTween(target); //[IF-JS]if (target.destroyed) return clearTween(target); [IF-JS]if (target != null && target.destroyed) return clearTween(target); ?...
来源: Laya_社区 发布时间: 20170313
...h (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (points1[i] tpoint2[i]) { tpoint2[i] = tpoint2[i] + 1; } if (points2[i] tpoint3[i]) { tpoint3[i] = tpoint3[i] + 1; } if (points3[i] = []; private points2:Array = []; private points3:Array = []; private tpoint1:Array = []; ...
来源: Laya_示例 发布时间: 20251130
...h (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (points1[i] tpoint2[i]) { tpoint2[i] = tpoint2[i] + 1; } if (points2[i] tpoint3[i]) { tpoint3[i] = tpoint3[i] + 1; } if (points3[i] = []; private points2:Array = []; private points3:Array = []; private tpoint1:Array = []; ...
来源: Laya2.0_示例 发布时间: 20251130
...0-13 15:05 有空我弄一下,== Chuan • 2018-03-24 14:57 已解决: if (e.type == Laya.Event.CLICK) { if (e.target.name == "arrow") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selec...
来源: Laya_社区 发布时间: 20171011
...空,则删除所有帧标签! */ __proto.removeLabel=function(label){ if (!label)this._labels=null; else if (this._labels){ for (var name in this._labels){ this._removeLabelFromList(this._labels[name],label); if(this._labels[name].length == 0){ delete this._labels[name]; } } } } ----------------...
来源: Laya_社区 发布时间: 20181105