• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 50 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0033 秒)

1. 想使用try。。catch捕捉socket连接异常无效 [ 100%]

想使用try。。catch捕捉socket连接异常无效 当网络中断进行重连时,socket.connectByUrl("ws://" + IP + ":" + port),会不断报错,想在该语句外使用try..catch捕捉异常,无效,为什么呢? 2017-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

来源: Laya_社区 发布时间: 20171024

2. laya有类似于try...catch这样的异常捕捉吗 [ 98%]

laya有类似于try...catch这样的异常捕捉吗 2017-09-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 有,同原生使用一样,直接用即可,建议少用,影响性能...

来源: Laya_社区 发布时间: 20170905

3. LocalStorage 接口适配问题 [ 80%]

...是错误的             });         }         catch(error){             VVMiniAdapter.window.qg.setStorage({                 key:key,                 data:value //这是错误的               });         }...

来源: Laya_社区 发布时间: 20191018

4. 本地双击html如何打开laya项目? [ 80%]

...erver; // } public HttpServer() { try { server = new ServerSocket(PORT); } catch (IOException e) { // TODO Auto-generated catch block Log. i(TAG, "异常信息:" + e.getMessage()); } new Thread(this).start(); Log. i(TAG, "server is start......"); } public void run() { // 服务器端连续监听...

来源: Laya_社区 发布时间: 20160104

5. Native(android)下创建二维码并显示在页面上 [ 75%]

... bitmap.setPixels(pixels, 0, width, 0, 0, width, height); return bitmap; } catch (WriterException e) { e.printStackTrace(); } return null; }/** * bitmap转为base64 * @param bitmap * @return */ public static String bitmapToBase64(Bitmap bitmap) { String result = null; ByteArrayOutputStream baos = nu...

来源: Laya_社区 发布时间: 20200729

6. LocalStorage的bug [ 74%]

...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

7. 提示LAYA核心库中找不到 Laya.__awaiter函数 [ 74%]

...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

8. 播放音效时报错Failed to set the 'buffer' property on 'AudioBufferSourceNode'的问题 [ 73%]

...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

9. [LayaAir3]3D骨骼动画动画烘培 [ 66%]

...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

10. LayaBox 出错啦,请把此信息截图给研发商 SimpleSingletonList [ 66%]

... *%〈~〉 • 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