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

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

31. 怎么集成导入mqtt.js到laya中 [ 62%]

...vate client: Paho.MQTT.Client; private message: Paho.MQTT.Message; private self = this; public constructor() { public connect(url, port, client): void { //初始化 this.client = new Paho.MQTT.Client(url, Number(port), client); // set callback handlers //连接消失 收到消息 this.client.onConne...

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

32. 请问如何加载base64的图片 [ 61%]

...inxu345050878 赞同来自: __proto.uploaderHandler=function (files) { var self=this; var file=files[0]; var reader=new FileReader(); reader.onload=function () { this.headIcon.loadImage(this.result); } reader.readAsDataURL(file); } 是这样显示的吗?我的为何也不显示,通过html的inpu...

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

33. App websocket out of memory [ 61%]

...gt; { }); client.on(PinusWSClientEvent.EVENT_KICK, (event) => { }); let self = this; client.init({host: "192.168.1.218", port: 10000}, () => { }); } 附件 : --> WebsocketTest.zip 2019-05-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

34. 通过html的input类型file上传图片,然后通过FileReader获取图片数据之后设置laya的image.skin图片不显示 [ 59%]

...显示 __proto.uploaderHandler=function (files) {              var self=this; var file=files[0];              var reader=new FileReader();               reader.onload=function () {                         this.headIcon.loadImage(this.result); 或者 this.headIcon.sk...

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

35. box2d引擎报错问题 [ 57%]

...e.js:21262)   相关逻辑代码如下: moveSuccess(){ this.owner.removeSelf(); Laya.Pool.recover("flyCat", this.owner) } onTriggerEnter(other: any, self: any, contact: any): void { if (other.label === "cloud") { Laya.Tween.clearAll(this._sp) let effect: Laya.Animation = Laya.Pool.getItemByCreate...

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

36. App Updates for HTML5 Apps 这意味着iOS端就废了? [ 54%]

...t they expect on the App Store, we have always specified that apps must be self-contained bundles. This means that the core features and functionality of the app must be contained within the binary of the software, rather than made possible by referring users outside of the approved app, including t...

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

37. Animation创建和销毁的问题 [ 52%]

...his, this.onKeydown); } private function onKeydown(event:Event):void { var self:* = this; if(event.keyCode === Keyboard.SPACE) { //移除动画 if(testAnim1) { testAnim1.clear(); testAnim1.removeSelf(); testAnim1 = null; testAnim2.clear(); testAnim2.removeSelf(); testAnim2 = null; Loader.clearRes("r...

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

38. Native 在iOS上支付失败的问题,及临时解决方法 [ 49%]

...der_id"]; [dict setObject:sCallbackURL forKey:@"backurl"]; [dict setObject:self.gameAppID forKey:@"gameid"]; NSData* pData = [NSKeyedArchiver archivedDataWithRootObject:dict]; [b]payment.requestData = pData;[/b]苹果官方文档(链接)中有明确提示 requestData参数:  The default value...

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

39. box2d 弹性异常 [ 49%]

...11a • 2020-03-09 14:18 你在FlyItem里添加 onTriggerEnter(other: any, self: any, contact: any): void { let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody) as Laya.RigidBody; let velocity = rig.linearVelocity; console.log(velocity) } 你把初始弹射改成一个球,你就会发...

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

40. 微信小游戏提审后,提示说代码侵权 [ 46%]

...pContent.replace(regExp, "this." + name2 + ")"); var regExp2 = new RegExp("self."+name + "\\(", 'gi'); phpContent = phpContent.replace(regExp2, "self." + name2s); } } //====增加干扰代码================================================================== let arr2 = phpContent.split("\n"); //conso...

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