大约有 2,110 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0077 秒)
... if (this.ball.y + this.vy >= this.stageHeight ||this.ball.y + this.vy <= 0) { this.vy = -this.vy; } if (this.ball.x + this.vx >= this.stageWidth ||this.ball.x + this.vx <= 0) { this.vx = -this.vx; } 2017-11-07 0 1 分享 微博 QZONE 微信 l13273866189 赞同来自: 2017-11-07 0 ...
来源: Laya_社区 发布时间: 20171107
...容为module Library{ export class UserService{ constructor(){ } public multiple(a:number, b:number):number { return a * b; } } } 5 写测试用例 对照第四步的三个文件,写对应的三个测试文件。 第一个是__tests__/Functions.test.tsx/// <reference path="../src/Functions.ts" ...
来源: Laya_社区 发布时间: 20181214
...开发者工具Cannot assign to read only property 'window' of object '#<Window>' Cannot assign to read only property 'window' of object '#<Window>'这个问题到底怎么解决?有官方的回复了么? 我这里将ES6转ES5取消后,真机调试又不行“缺少文件,ERR :...
来源: Laya_社区 发布时间: 20190825
...x = new Laya.Sprite(); Laya.stage.addChild(this.btnBox); for(var i = 0; i < 5; i++){ var btn = new Laya.Sprite(); btn.loadImage("Key.jpg",i*100,800,100,60); btn.id= i; btns.push(btn); this.btnBox.addChild(btn); console.log(btn.id); } for(var i = 0; i < 5; i++){ btns[i].on(Laya.Event....
来源: Laya_社区 发布时间: 20180817
...꧁༒꧂(藏文,爪哇文) 尝试解决办法: 1、Laya.Font.defaultFont 无效 2、单独 Label 设置字体:label.font = "Apple Chancery"; web 版本有效,native 无效 3、删除原生项目 resource/font 目录下的字体文件,测试发现最终执行到 resource/scripts 目录...
来源: Laya_社区 发布时间: 20181119
...te bgmChannel: Laya.SoundChannel | null; private effectChannels: Map<string, Laya.SoundChannel>; private dialogueChannels: Map<string, Laya.SoundChannel>; private fadeIntervals: Map<Laya.SoundChannel, any>; private static readonly STORAGE_KEY = "audio_settin...
来源: Laya_社区 发布时间: 20250930
...功能,, 但是会有一个问题,,如果我的html文件内有<script src="http://hgsdk.bjystc.com/js/spar.js"></script>这样类型的js文件(从网络加载的不是在本地),那发布的时候,就会报错发布失败,,勾选的合并js混淆js都没有效果...
来源: Laya_社区 发布时间: 20180118
protobuf TS中使用 我已经在index.html中加入 <script type="text/javascript" src="libs/protobuf.js"></script> 但是工程中libs怎么加入.d.ts呢? 2017-08-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20170817
...误,麻烦看是否和引擎有关,手机型号,opop R7Plusm <eglTimestampCreate:5650>: EGL_BAD_ALLOC 08-20 16:53:49.050 24823-24871/? E/libEGL: eglMakeCurrent:792 error 3003 (EGL_BAD_ALLOC) 08-20 16:53:49.060 309-376/? E/BufferQueueProducer: [SurfaceView] connect(P): already conn...
来源: Laya_社区 发布时间: 20180820
...:E:\gitApp\Felguard_TD_Server\server\gulpfile.js:348 throw new Error(result.ret+':'+result.msg); 出错了: Error: 162:permission denied at Request._callback (E:\gitApp\Felguard_TD_Server\server\gulpfile.js:348:27) at Request.self.callback (D:\新安装工具\layabox2.0\LayaAi 出错了:rIDE_be...
来源: Laya_社区 发布时间: 20181224