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

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

1. 场景管理 · LayaAir3.0文档 · LAYABOX [ 100%]

...am 打开页面的参数,会传递给onOpened方法(可选) * @param complete 打开完成回调,返回场景实例(可选) * @param progress 加载进度回调(可选) */ static open(url: string, closeOther: boolean = true, param: any = null, complete: Handler = null, progress: Hand...

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

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

... "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求出错时调度。 * @eventType Event.ERROR * */ /*[Event(name = "error", type = "laya.events.Event")]*/ 2.1.4 在代码中怎么使用 Laya...

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

3. 和原生Dom交互 · LayaAir3.0文档 · LAYABOX [ 41%]

...r httpreq:Laya.HttpRequest = new Laya.HttpRequest(); httpreq.on(Laya.Event.COMPLETE,this,this.completeHandler); httpreq.on(Laya.Event.ERROR,this,this.errorHandler); httpreq.send("demo1.js"); } private completeHandler(e:any):void{ var script:any = Laya.Browser.document.createElement("script"); Laya.B...

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

4. 精灵 · LayaAir3.0文档 · LAYABOX [ 38%]

...idth,height参数取消。</p> * @param url 图片地址。 * @param complete (可选)加载完成回调。 * @return 返回精灵对象本身。 */ loadImage(url: string, complete?: Handler): Sprite; 我们来看看代码示例: let sprite = new Laya.Sprite(); // 加载并显示一个...

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