大约有 1,488 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0051 秒)
...de + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) trace('海拔:' + info.altitude + 'm' + (info.altitudeAccuracy != null ? (',精确度:' + info.altitudeAccuracy + 'm') : '')); if(info.heading != null && !isNaN(info.heading)) trace('方向:'...
来源: Laya2.0_文档 发布时间: 20210715
...WebSocket(url); var _self; _self=this; this._socket.onClose=function (ws){ if (_self.onclose !=null){ _self.onclose(); } } this._socket.onOpen=function (ws){ if (_self.onopen !=null){ _self.onopen(); } } this._socket.onError=function (ws){ if (_self.onerror !=null){ _self.onerror(); } } this._socket...
来源: Laya_社区 发布时间: 20180328
...路径 let ideModuleDir; let workSpaceDir; for(var argv of process.argv) { if(argv.indexOf("--cwd=") == 0) { ideModuleDir = argv.split("=")[1] + "\\node_modules\\"; } else if(argv.indexOf("--gulpfile=") == 0) { workSpaceDir = argv.split("=")[1].replace("/.laya/compile.js", ""); } }2、修改typescri...
来源: Laya_社区 发布时间: 20200607
... 1 个回复 wudi199553 赞同来自: function launchFullscreen(element) { if(element.requestFullscreen) { element.requestFullscreen(); } else if (element.mozRequestFullScreen) { element.mozRequestFullScreen(); } else if (element.webkitRequestFullscreen) { element.webkitRequestFullscreen...
来源: Laya_社区 发布时间: 20171206
...de + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) trace('海拔:' + info.altitude + 'm' + (info.altitudeAccuracy != null ? (',精确度:' + info.altitudeAccuracy + 'm') : '')); if(info.heading != null && !isNaN(info.heading)) trace('方向:'...
来源: Laya2.0_文档 发布时间: 20210714
...nt): void{ console.log(e.keyCode); if(e.keyCode==37){//左 this.hero.pos(this.hero.x-100,this.hero.y); }else if(e.keyCode==39){//右 this.hero.pos(this.hero.x+100,this.hero.y); ...
来源: Laya_社区 发布时间: 20161015
...式进行监听网络变化,代码如下: JS代码如下 ```javascript if( conch ) { conch.setNetworkEvtFunction(function(type) { alert(type) }); } ``` AS代码如下: ```javascript if ( Render.isConchApp) { Browser.window["conch"].setNetworkEvtFunction(function(type):void { alert(type) }); } ...
来源: Laya2.0_文档 发布时间: 20210714
...function onUpdate():void { var touchCount:int = _scene.input.touchCount(); if (1 === touchCount){ //判断是否为两指触控,撤去一根手指后引发的touchCount===1 if (isTwoTouch){ return; } _text.text = "触控点为1"; //获取当前的触控点,数量为1 var touch:Touch = _scene.inp...
来源: Laya2.0_文档 发布时间: 20210715
... var len=this._eventList.length; if (!len)return; var _this=this; var i=0; var localevnetList = this._eventList.slice(); this._eventList.length = 0; whil...
来源: Laya_社区 发布时间: 20170614
...= this._list.getChildAt(index).getChildAt(0) as Laya.CheckBox; if(checkBoxItem!=null){ switch(checkBoxItem.name.trim()){ case "0":{ console.log("目录"); ...
来源: Laya_社区 发布时间: 20241014