大约有 791 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0083 秒)
...小程序如何加载外部资源呢? Laya.TBMiniAdapter.baseDir = "http://www.xxx.com"; 或 Laya.URL.basePath = "http://www.xxx.com"; 设置了之后就没有办法进去,提示加载不到初始场景。 测试了下,load完整外部资源(比如图片)也是不成功的。 有...
来源: Laya_社区 发布时间: 20201130
请问我用下面的代码发送个简单的http get请求,为什么在电脑上能得到成功输出,在手机上总是得到失败输出呢? function myfunc() { var url = "http://43.254.151.248/sf_serve ... 3B%3B alert("url=" + url); var req = new laya.net.HttpRequest(); req.on(laya.events...
来源: Laya_社区 发布时间: 20161103
网络通信一、概述二、Http连接2.1 Laya.HttpRequest2.2 GET2.3 POST2.4 扩展HttpRequest三、 WebSocket连接3.1 Laya.Sokcet3.2 Laya.Byte 二进制读写四、ProtocolBuffer使用4.1 Message 定义4.2 项目中添加protobuf 类库4.3 加载协议文件4.4 Message 方法4.5 代码示例网...
来源: Laya3.0_文档 发布时间: 20250104
...erty 'btCollisionObject' of undefined 10-15 16:43:46.702: I/LayaBox(3503): http://stand.alone.version/libs/laya.d3.js:37260: 10-15 16:43:46.702: I/LayaBox(3503): TypeError: Cannot read property 'btCollisionObject' of undefined 10-15 16:43:46.702: I/LayaBox(3503): var btColObj=new physics3D.btCollisi...
来源: Laya_社区 发布时间: 20181015
http://layaair.ldc.layabox.com/demo/?Text_Scroll 这个场景中只能有一个吗 我加了第二个 就不滚了 2017-04-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 186*****260 赞同来自: 发现是 第...
来源: Laya_社区 发布时间: 20170429
... exist: {init: ƒ} VM163:1 请先初始化小游戏适配库,详细教程https://ldc.layabox.com/doc/?nav=zh-ts-5-0-0 console.error @ VM163:1 Browser.__init__ @ code.js:7131 (anonymous) @ code.js:7056 GameEx @ code.js:56322 (anonymous) @ code.js:56681 require @ WAGame.js:3 (anonymous) @ WAGame.js:...
来源: Laya_社区 发布时间: 20180426
...d Error: module "libs/laya.wxmini.js" is not defined at require (http://127.0.0.1:43425/game/__ ... :13569) at http://127.0.0.1:43425/game/__ ... 13424 at http://127.0.0.1:43425/game/game.js:6:2 at require (http://127.0.0.1:43425/game/__ ... :13675) at <anonymous>:1:1 console.error @...
来源: Laya_社区 发布时间: 20180602
... var iframe = new laya.html.dom.HTMLIframeElement(); iframe.href="http://www.baidu.com"; Laya.stage.addChild(iframe); //showText(); })(); 2017-11-13 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: 麻烦你说的具体一点行么 2017-11-13 0 3 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20171113
HttpRequest如何发送JSON数据 发送JSON数据 var logReq = new laya.net.HttpRequest(); logReq.once(Laya.Event.COMPLETE,this,this.onComplete); logReq.send("http://127.0.0.1:3001/login", "username: 'lxd', password: 'lxd'", 'post', "json...
来源: Laya_社区 发布时间: 20170906
# HttpRequest详解 在项目中我们难免会有发送http请求的需求,在LayaAir引擎中HttpRequest就是我们发送请求的基本类。HttpRequest类其实包装的就是原生的`XMLHttpRequest`,为了开发者更深入的了解这个类,我们先从XMLHttpRequest 开始。 ## 原...
来源: Laya2.0_文档 发布时间: 20210714