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

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

101. 关于HttpRequest报错问题 [ 75%]

...Content-Type","application/x-www-form-urlencoded; charset=utf-8"); xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete); xmlHttp.once(Event.ERROR,this,errorHandler); xmlHttp.on(Event.PROGRESS,this,processHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(da...

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

102. 排坑:Laya.HttpRequest()无效 [ 75%]

...w Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("http://www.baidu.com", "", "get", "text"); function processHandler(data) { consol...

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

103. 请问怎么把arraybuffer作为图片显示出来 [ 74%]

...平台不行的   求大神帮忙 let xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send("https://ask.layabox.com/static ... ot%3B, "", "get", "arraybuffer"); private completeHandler(data: ArrayBuff...

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

104. Laya.HttpRequest 没有调用回调方法? [ 74%]

...w Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com/","","get","text"); function processHandler(data){ console.log(da...

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

105. laya.resource.VideoTexture_API3.0 [ 74%]

...t gpuCompressFormat hasListener isCreateFromURL off offAll offAllCaller on once videoPause videoPlay destroyUnusedResources Constructors constructor new VideoTexture(): VideoTexture Overrides BaseTexture.constructor Defined in laya/resource/VideoTexture.ts:28 创建VideoTexture对象, Returns Vide...

来源: Laya3.0_api 发布时间: 20231102

106. laya.utils.Timer [ 74%]

...ore:Boolean = true):void 定时重复执行(基于帧率)。 Timer  frameOnce(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时执行一次(基于帧率)。 Timer  loop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = t...

来源: laya_api 发布时间: 20170929

107. laya.resource.Texture_API3.0 [ 74%]

...tTexturePixels hasListener isCreateFromURL load off offAll offAllCaller on once recoverBitmap setTo create createFromTexture destroyUnusedResources Constructors constructor new Texture(source?: Texture | BaseTexture, uv?: ArrayLike<number>, sourceWidth?: number, sourceHeight?: number): Texture...

来源: Laya3.0_api 发布时间: 20231115

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

...w Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, completeHandler); xhr.once(Event.ERROR, this, errorHandler); xhr.on(Event.PROGRESS, this, processHandler); xhr.send("https://api.weixin.qq.com/cgi- ... ot%3B, "", "get", "text"); function processHan...

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

109. list 中的scrollbar [ 73%]

...nMove);         Tween.clearTween(this);         Laya.stage.once(/*laya.events.Event.MOUSE_UP*/"mouseup",this,this.onStageMouseUp2);         Laya.stage.once(/*laya.events.Event.MOUSE_OUT*/"mouseout",this,this.onStageMouseUp2);         Laya.timer.frameLoop(1,this,this.l...

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

110. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

...例中 this.uiBtn.on 是使用了持续侦听。 2.2.3 单次事件侦听 once /** * 使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦听事件响应一次后自动移除。 * @param type 事件的类型。 * @param caller 事...

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