大约有 414 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0037 秒)
...逻辑处理。 2.1 支持的事件类型 LayaAir中的HttpRequest继承自EventDispatcher,因此支持多种事件类型,用于HTTP请求后的响应逻辑,常用的事件有: Event.PROGRESS:用于跟踪 HTTP 请求的上传和下载进度,例如文件下载时,值为1时表示已完...
来源: Laya3.0_文档 发布时间: 20250214
....1.4 在代码中怎么使用 LayaAir引擎中用 HttpRequest 继承的是 EventDispatcher,具有事件派发的功能。加上本身具备发送请求的功能。我们写个简单的例子来看下用法: class LayaSample { constructor() { //创建HttpRequest对象 let http: Laya.HttpRequest =...
来源: Laya3.0_文档 发布时间: 20250104
...dio) return 1; return this._audio.volume; } } class MiniSound extends Laya.EventDispatcher { constructor() { super(); this.loaded = false; } static _createSound() { MiniSound._id++; return MiniAdpter.window.wx.createInnerAudioContext(); } load(url) { if (!MiniFileMgr.isLocalNativeFile(url)) { url = ...
来源: Laya_社区 发布时间: 20200103
...** 基于pomelo网络握手通讯*/ export class Socket extends Laya.EventDispatcher { private pomelo: Pomelo; private mDecorate:Decorate;//装饰器 private mHost: string; private mPort: number; private mConnected: boolean; ...
来源: Laya_社区 发布时间: 20161109