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

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

2361. http 请求 once 的 回调参数,如何传递和接收? [ 68%]

...象。 请求发送: var hr = new HttpRequest(); hr.once(Event.COMPLETE, this, http.success,[1,2,3]); hr.send("http://localhost:8082/hu_get",{}, "post","json",null);   回调方法: success:function (e,args) {     console.log(e); //此行可以得到响应内容     console.log(args);  //...

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

2362. 升级引擎到1.7.19.1beta List报错问题 [ 68%]

...d        {              super.initialize();              this.itemRender = PageRender;//错误,因为_cells未初始化              this._itemRender = PageRender;//OK        } } class PageRender extends laya.ui.View {       constructor()      {           su...

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

2363. HttpRequest如何发送JSON数据 [ 68%]

...new laya.net.HttpRequest();         logReq.once(Laya.Event.COMPLETE,this,this.onComplete);         logReq.send("http://127.0.0.1:3001/login", "username: 'lxd', password: 'lxd'",         'post', "json", null); 服务端无法获取数据 2017-09-06 4 条评论 免费帖 --> 分...

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

2364. img点击事件。点击图片外,也触发了事件。请问怎么解决 [ 68%]

....Stage.ALIGN_MIDDLE; Laya.loader.load("res/img/m1.jpg",Laya.Handler.create(this,load)); function load(){ let ctn2=new Laya.Sprite(); Laya.stage.addChild(ctn2); var gq=new Laya.Sprite(); gq.loadImage("res/img/m1.jpg",100,100,100,100);   ctn2.addChild(gq); gq.on(Laya.Event.CLICK,this,Is);   }  func...

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

2365. timeline播放完成Bug [ 68%]

....ldc2.layabox. ... 3B%3B Laya.loader.load(monkey1Path, Laya.Handler.create(this, function() { let monkey = Laya.loader.getRes(monkey1Path); let ape = new Laya.Sprite(); Laya.stage.addChild(ape); ape.graphics.drawTexture(monkey, 0, 0); var tl = new Laya.TimeLine(); tl.once('complete', this, function(...

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

2366. IDE里list里添加了一个box后,如何通过点击按钮后添加新的box在下面? [ 68%]

...如何实现通过点击1个【新增】按钮,添加1个同样的box? this.list_item.addItem(this.list_item.box_item); 用上述那行代码无法实现,是少了什么吗? 2018-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...

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

2367. laya2.12的input在安卓不起作用还报错 [ 68%]

...用来做测试的功能,不着急解决的let input = new Laya.Input() this.changeIDBtn.displayObject.addChild(input) input.y = -200; input.x = -200; input.text = 2000 + "" 附件 : --> 2021-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

2368. Laya.SoundManager.playSound报错 [ 68%]

...来自: SoundManager.playSound("../../res/sounds/btn.mp3", 1, new Handler(this, onComplete));  SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, onComplete));   https://layaair.ldc.layabox.co ... eDemo 2018-06-14 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 更新...

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

2369. clearUnLoaded的bug LayaAirIDE1.7.9 [ 68%]

... res.download.bg("bg5")]     Laya.loader.load(arr, Laya.Handler.create(this, onComplete))     Laya.loader.clearUnLoaded()     Laya.loader.load(arr, Laya.Handler.create(this, onComplete)) }  function onComplete(){     trace("complete") } Resources already exist,is repeated loading: r...

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

2370. lh文件内meshSprite添加阴影属性无效 [ 68%]

...改却全部都生效了   var mesh:Laya.MeshSprite3D; for(var i =0;i<this.sprite3D._childs.length;i++){ mesh = this.sprite3D.getChildAt(i) as Laya.MeshSprite3D; mesh.meshRender.material = material; mesh.meshRender.receiveShadow = true; mesh.meshRender.castShadow = true; console.log(mesh.name) }...

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