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

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

1. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...a.TextArea; private text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); } /** * 初始化UI */ private initUI(): void { this.showLogger(); this.text.text = "请查看源码和调试信息,了解如何使用"; this.text.color = "#FFFFFF"; this.text.font = "Impact";...

来源: Laya3.0_文档 发布时间: 20250214

2. 网络通信 · LayaAir3文档 · LAYABOX [ 99%]

...象所封装的原生 XMLHttpRequest 引用。 */ get http(): any { return this._http; } 通过 ._http 属性可以获得XMLHttpRequest。XMLHttpRequest 中文可以解释为可扩展超文本传输请求。它为客户端提供了在客户端和服务器之间传输数据的功能。它提供了一...

来源: Laya3.0_文档 发布时间: 20250104

3. WebSocket通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...ROR:连接出错时触发。 示例代码: // 注册事件监听示例 this.socket.on(Laya.Event.OPEN, this, this.onSocketOpen); this.socket.on(Laya.Event.MESSAGE, this, this.onMessageReceived); this.socket.on(Laya.Event.CLOSE, this, this.onSocketClose); this.socket.on(Laya.Event.ERROR, this, th...

来源: Laya3.0_文档 发布时间: 20250214

4. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...代码如下: var div:any = Laya.Browser.document.createElement("div"); this.qrcode = new Laya.Browser.window.QRCode(div,{ width:100, height:100 }); var url:string = "http://layabox.com/"; this.qrcode.makeCode(url); Laya.stage.once("click",this,this.clickHandler); this.qrcodeSp = new Laya.Sprite()...

来源: Laya3.0_文档 发布时间: 20240910