大约有 1,449 项符合查询结果, 库内数据总量为 30,779 项。 (搜索耗时: 0.0062 秒)
...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_示例 发布时间: 20241119
...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_示例 发布时间: 20241119
...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
关于确认框机制:Laya是如何实现js的if(window.confirm('你确定要取消交易吗?'))机制 功能流程: 1、用户点击ListUI中绑定的某一项的“删除”按钮,获取要删除项对应的item_id。 2、此时调起确认框询问用户是否确认删除。 3、用户...
来源: Laya_社区 发布时间: 20180319
...LoadGroupError"; private static _res:RES; public static getInstance():RES{ if(!RES._res){ RES._res = new RES(); } return RES._res; } /** * 加载资源配置文件 */ public static loadResJson(srcName: string,caller: any){ Laya.loader.load("res/" + srcName,new Laya.Handler(caller,function(arg: any){...
来源: Laya_社区 发布时间: 20161011