大约有 61 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0038 秒)
...e.setItem('laya', '1');Storage.removeItem('laya');Storage.support = true;} catch(e){}if(!Storage.support)console.log('LocalStorage is not supprot or browser is private mode.')"); } 改成 public static function init():void { __JS__("try{Storage.items=window.localStorage;Storage.setItem('laya', '1...
来源: Laya_社区 发布时间: 20180703
...reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result...
来源: Laya_社区 发布时间: 20221104
...ourceNode){ // if (!Browser.onMac){ // try{ // sourceNode.buffer=null; // }catch (e){ // WebAudioSoundChannel._tryCleanFailed=true; // } // return; // } try {sourceNode.buffer=WebAudioSound._miniBuffer;}catch (e){WebAudioSoundChannel._tryCleanFailed=true;} } 想问下laya.core.js我注释的这...
来源: Laya_社区 发布时间: 20180914
...ONObject(json); Log.d("JSBridge", "java: " + root.getString( "value" )); } catch (JSONException e) { e.printStackTrace(); } m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new JSONObject(); try { obj.put("value", "Hello JS!"); } catch (JSONException e) { e...
来源: Laya2.0_文档 发布时间: 20210714
...ntextAttributes: {alpha: false}, }).then(() => { }).catch((err) => { }); } catch(err) { console.error('current env not surpport plugins', error); } Demo.zip 2024-10-14 1 0 分享 微博 QZONE 微信 layabox 赞同来自: 请提供DEMO工程 ...
来源: Laya_社区 发布时间: 20241010
... *%〈~〉 • 2019-09-25 17:58 之前问过laya那边的人,加了trycatch就好了,下面是SimpleSingletonList.as里需要加trycatch的地方 /** * @private */ public function add(element:ISingletonElement):void { try { var index:int = element._getIndexInList(); if (index !== -1) throw &qu...
来源: Laya_社区 发布时间: 20190618
...ONObject(json); Log.d("JSBridge", "java: " + root.getString( "value" )); } catch (JSONException e) { e.printStackTrace(); } m_Handler.post( new Runnable() { public void run() { //ui thread update ui JSONObject obj = new JSONObject(); try { obj.put("value", "Hello JS!"); } catch (JSONException e) { e...
来源: Laya3.0_文档 发布时间: 20250422
...QZONE 微信 龙行天下 赞同来自: java那边有异常了,需要try catch看一下 2019-05-22 0 2 分享 微博 QZONE 微信 你快一点儿 赞同来自: 我用了try输出看到了如下日志 2019-05-22 0 0 分享 微博 QZONE 微信 你快一点儿 赞同来自: 找到问题了,安卓...
来源: Laya_社区 发布时间: 20190522
...在UI线程里,而是直接在conch线程里调用,似乎异常被try-catch了? 除了logcat就没什么方法捕捉日志再上报了。 不崩溃当然不是件坏事情,但是进而引申出一个问题,如果在conch线程中产生了非js层面的错误,如何去获悉呢? 2...
来源: Laya_社区 发布时间: 20190821
...s • 2019-03-19 14:18 这个问题我也出现了,没办法只能先try catch DxD • 2019-03-20 17:14 +1 同出现过这个问题 也是随机的
来源: Laya_社区 发布时间: 20190314