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

大约有 196 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0047 秒)

121. Native 如何使用ttf? [ 57%]

...ror = function (e) { alert('>>>download ttf error :' + e); }; xhr.send(null); //这里以html5标准canvas接口为例 function onDrawFrame() { Laya.Browser.context.save(); Laya.Browser.context.font = "Arial"; Laya.Browser.context.fillStyle = "#00ff00"; Laya.Browser.context.restore(); } 然...

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

122. 官方的示例贴上来,怎么没反映啊 [ 57%]

...OR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("https://api.weixin.qq.com/cgi- ... ot%3B, "", "get", "text"); function processHandler(data) { console.log(data); } function errorHandler(data) { alert(2); } function completeHandler(e) { alert(1); } } Laya.class(JiHuo, ...

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

123. websocket发送的数据会延迟不? [ 57%]

...稳的关系,在未断的情况下 假设有下面的语句 t=4; socket.send(JSON.stringify({"t": t})); t+=1; 会不会后端在网络不好的情况下收到5?我测试一下来好像有这个情况   该情况用在比如加钻石数时,前端同步更新,后端会和前端发来的数值...

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

124. 360极速浏览器的兼容模式报错 SCRIPT5022: InvalidStateError [ 57%]

...ie浏览器会出现这个问题,原因是因为在HttpRequest  发送send 数据前 调用了timeout 属性。 找了下解决方案, https://gitlab.com/meno/dropzone/issues/8 https://github.com/stephanebac ... ues/5 2019-01-29 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

125. http 请求 once 的 回调参数,如何传递和接收? [ 57%]

...new HttpRequest(); hr.once(Event.COMPLETE, this, http.success,[1,2,3]); hr.send("http://localhost:8082/hu_get",{}, "post","json",null);   回调方法: success:function (e,args) {     console.log(e); //此行可以得到响应内容     console.log(args);  //此行无法获取自定义参数...

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

126. HttpRequest感觉没有发成功 [ 57%]

....ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com","","get","text"); function processHandler(data){ console.log(data); console.log("processHandler"); } function errorHandler(data){ console.log("errorHandler"); } function completeHandler(e){ consol...

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

127. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 57%]

...self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加载完毕传给主进程,运行这个例子可以在浏览器控制台看到数据输出来。 `var myWorker = new Worker("my_task.js")`实例化一...

来源: Laya2.0_文档 发布时间: 20210715

128. lib/arm/liblayaair.so 总是崩溃 [ 57%]

...ter, getBoosterConfig = true 08-14 10:57:50.011 3526-3882/? D/WifiHW: wifi_send_command: cmd:'IFNAME=wlan0 SIGNAL_POLL' 08-14 10:57:50.011 6842-6842/? D/wpa_supplicant: wlan0: Control interface command 'SIGNAL_POLL' 08-14 10:57:50.015 3526-3882/? E/WifiConfigStore: updateConfiguration freq=5240 BSSI...

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

129. 关于protobuf读取的问题,js的lists.toArrayBuffer() 该如何读取? [ 57%]

...r = lists.toArrayBuffer(); this.byte.writeArrayBuffer(buffer); this.socket.send(this.byte.buffer) 然后依次读取 var a:int = this.byte.getInt32(); ...............后面吧不知道怎么获取了 上面这样,通过js生成的toArrayBuffer;该怎么读取? 2017-09-21 添加评论 免费帖 -...

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

130. 如何在AS里写JS代码? [ 57%]

...? var fm_TT = 666; var fmxh:String = "FengMian_"+bl.xuhao; __JS__("ga('send','timing','WWWKKK','Load',fm_TT,fmxh)");MouseCount.max.js:16145 Uncaught ReferenceError: fm_TT is not defined   请问,如何在AS里写JS?为啥会not defined 2017-02-06 添加评论 免费帖 --> 分享 微博 QZONE...

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