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

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

21. Uncaught TypeError: tex.once is not a function [ 94%]

UI相关问题 LayaAir引擎 Uncaught TypeError: tex.once is not a function 不知道有没有和我遇到一样的问题 附件 : --> 2018-05-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_Aaron 赞同...

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

22. HttpRequest感觉没有发成功 [ 94%]

...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

23. 网络和格式-POST [ 93%]

...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

24. 网络和格式-GET [ 93%]

...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

25. Handler.create() 方法第四个参数once默认值的API为false,而引擎得实际默认值为true [ 93%]

Handler.create() 方法第四个参数once默认值的API为false,而引擎得实际默认值为true 如题 附件 : --> 2019-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 kylin 赞同来自: 检查了...

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

26. 最新版本IDE,如何获取http返回的json数据 [ 93%]

...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

27. 网络请求添加headers后 post数据错误 [ 93%]

...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

28. List表单renderHandler问题 [ 92%]

...默认会执行一次并立即回收,如果不需要自动回收,设置once参数为false。          * @param   caller 执行域(this)。          * @param   method 回调方法。          * @param   args 携带的参数。          * @param   once ...

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

29. laya.device.Shake_API3.0 [ 90%]

...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

30. 纹理加载时,drawTexture方法报错 [ 90%]

纹理加载时,drawTexture方法报错 if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }drawTexture方法最下方有上面这一段代码,作用大概是第一加载失败时,再重新加载一遍。本来是挺好的,但是tex.once却...

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