大约有 698 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0039 秒)
Laya_社区(286) Laya3.0_api(156) laya_api(106) Laya2.0_api(98) Laya2.0_文档(24) Laya_示例(16) Laya3.0_文档(8) Laya2.0_示例(4)
UI相关问题 LayaAir引擎 Uncaught TypeError: tex.once is not a function 不知道有没有和我遇到一样的问题 附件 : --> 2018-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_Aaron 赞同...
来源: Laya_社区 发布时间: 20180510
...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(dat...
来源: Laya_社区 发布时间: 20180827
...Request = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); hr.once(Event.ERROR, this, this.onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/g...
来源: Laya2.0_示例 发布时间: 20250312
...Request = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); hr.once(Event.ERROR, this, this.onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.inner.layabox.com/api/g...
来源: Laya2.0_示例 发布时间: 20250312
Handler.create() 方法第四个参数once默认值的API为false,而引擎得实际默认值为true 如题 附件 : --> 2019-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 kylin 赞同来自: 检查了...
来源: Laya_社区 发布时间: 20190319
...w Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.once(Event.PROGRESS,this,processHandler); var sendData = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sen...
来源: Laya_社区 发布时间: 20180824
...callbackHandler = callback; // this.errcallback = errcallback; //this.http.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.http.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.http.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.http.send(url, 'chapter...
来源: Laya_社区 发布时间: 20180916
...默认会执行一次并立即回收,如果不需要自动回收,设置once参数为false。 * @param caller 执行域(this)。 * @param method 回调方法。 * @param args 携带的参数。 * @param once ...
来源: Laya_社区 发布时间: 20180704
...or Accessors instance Methods event hasListener off offAll offAllCaller on once start stop Constructors constructor new Shake(): Shake Defined in laya/device/Shake.ts:23 Returns Shake Accessors Static instance get instance(): Shake Defined in laya/device/Shake.ts:32 Returns Shake Methods event event...
来源: Laya3.0_api 发布时间: 20231115
纹理加载时,drawTexture方法报错 if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }drawTexture方法最下方有上面这一段代码,作用大概是第一加载失败时,再重新加载一遍。本来是挺好的,但是tex.once却...
来源: Laya_社区 发布时间: 20180724