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

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

441. 解析JSON格式的数据 [ 63%]

...LESS_TABLE.json"; var strJson=Laya.loader.load(fileURL,Handler.create(this,readJsonFinish),null,Loader.JSON); function readJsonFinish() { console.log(strJson); var contact = JSON.parse(strJson); } } cuixueying • 2016-07-26 11:13 Laya.loader.load是预加载JSON字符串,并非是获取JSON ...

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

442. 关于js继承类class的参数问题 [ 63%]

...{      *     function Item(){      *         Item.__super.call(this);//初始化父类      *         this.graphics.drawRect(0, 0, 100, 20, "#ff0000");      *         var label = new laya.ui.Label();//创建一个 Label 类的实例对象 label 。      *         lab...

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

443. 重写X Y在android studio里运行会变成00 [ 63%]

... XSprite extends Sprite 3 new出这个对象 将对象addChild到TestUI里 this.addChild(xSprite); 4 然后设置xSprite.x = 100; xSprite.y = 200; 5 然后再XSprite这个类里将XY复写比如 public set x(val: number) { this._x = val; } public get x(): number { return this._x; } public set y(val:...

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

444. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 62%]

...Request = new HttpRequest();             req.once(Event.COMPLETE, this, function():void             {                 trace(req.data);             });             req.once(Event.ERROR, this, function():void             {             ...

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

445. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 62%]

...移越位部分的鼠标触发事件不会被触发 //设置背景图片 this.bgimg = new Laya.Sprite(); this.bgimg.width=2*scronw; this.bgimg.height=2*scronh; //加载显示图片,坐标位于0,0 var temptexture=Loader.getRes(pic); if (typeof(temptexture)!="undefined"){ this.bgimg.texture=Loader....

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

446. ios打包时xcode报错无法进入游戏 [ 62%]

...ength')] at line 338.然后我根据朋友的提示,把laya.core.js里的this._testWord改成了Text._testWord,然后重新编译构建,但结果还是报这个错,请问应该怎么办呢?谢谢 陌熙 黯夜 • 2019-09-28 20:03 有人回答了呢,而且这问题也已经解决了,嘻...

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

447. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 62%]

...合我们调试代码 我们打开Floor.js 找到 Laya.timer.frameLoop(1, this, this.onLoop); 把这一行代码先给注释了 接着 我们先理一理自己的思路 我们要做玩家踩在地板上 那就要用到碰撞检测 上图中紫色的小点点是 两个物体的 坐标起始点 假设...

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

448. 关于HttpRequest [ 62%]

...Encode(obj); var hr = new Laya.HttpRequest(); hr.once(Laya.Event.PROGRESS, this, function (e) { console.log(e); }); hr.once(Laya.Event.COMPLETE, this, function () { console.log(hr.data); }); hr.once(Laya.Event.ERROR, this, function (e) { console.log(e); }); hr.send('http://stone.tt.be-xx.com/git/tes...

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

449. 自动布局容器 [ 62%]

...  }         };         dataSource.push(_data);         this.mainPanel.dataSource = dataSource; 想利用dataSource来实现横竖改变时重新赋值,dataSouurce里面放  ui.LnoidWv.ItemUI: {ui.LnoidWv.ItemUI.txt.text : txtArr[i]},这样也弄不了吗?   http://ask.lay...

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

450. spine 回调函数的参数没有效果 [ 62%]

...都是0,spine 输出文件见附件   sk_timelimit.on(Laya.Event.LABEL,this,this.animLabel); private animLabel(data:any) { }   var str = "readyGO1"; sk_view.sk_timelimit.play(str,false); 附件 : --> 归档.zip 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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