大约有 87 项符合查询结果, 库内数据总量为 31,715 项。 (搜索耗时: 0.0032 秒)
... 2.5 onError函数: ```java private onError(e: any): void { var errType: string; if (e.code = Laya.Geolocation.PERMISSION_DENIED) errType = "Permission Denied"; else if (e.code == Laya.Geolocation.POSITION_UNAVAILABLE) errType = "Position Unavailable"; else if (e.code == Laya.Geolocation.TIMEOUT...
来源: Laya2.0_文档 发布时间: 20210714
...宽高等于屏幕宽高。*/ public static const SCALE_FULL:String = "full"; 这个出现白边是正常的 1、你的游戏宽高比浏览器宽高小的时候,hui会出现白边 2、浏览器出现地址栏的时候可能会出现白边 如果你想去掉白边的话,建议你...
来源: Laya_社区 发布时间: 20170328
...中。 2.5 onError函数: private onError(e: any): void { var errType: string; if (e.code = Laya.Geolocation.PERMISSION_DENIED) errType = "Permission Denied"; else if (e.code == Laya.Geolocation.POSITION_UNAVAILABLE) errType = "Position Unavailable"; else if (e.code == Laya.Geolocation.TIMEOUT) er...
来源: Laya3.0_文档 发布时间: 20251010
...Apple 赞同来自: 可以给相关类类增加 function get thisClsName():string接口 然后相关类中实现一下,用字符串做标识 查询的时候用接口就可以取到 2018-04-04 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...
来源: Laya_社区 发布时间: 20180404
...个简单的数据类 public class Demo { public var a:int; public var b:String; public function Demo() { } }通过编译后会变成下面的代码class Demo{ constructor (){ //this.a=0; //this.b=null; } }这里字段a和b在编译后会被注释掉,只有初始化的时候给a和b赋值,编译...
来源: Laya_社区 发布时间: 20210222
...游戏画面? var script:* = Browser.createElement("script"); var jurl:String = "Main.js?" + "r" + Math.random(); script.src = jurl; Browser.document.body.appendChild(script); 我采用这种方式不成功! 2018-01-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20180127
...。 */ public static function playMusic(url:String, loops:int = 0, complete:Handler = null, startTime:Number = 0):SoundChannel { 你的参数传入是否正确那? 或者能否发一下你出问题部分的代码或者小demo那? 2018-04-17 0 1 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180417
...: ArgumentException: Invalid path System.IO.Path.GetDirectoryName (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Path.cs:215) LayaExport.DataManager.saveLightMapFile (.JSONObject customProps) LayaExport.DataManager.getSceneNode () LayaExport.DataManager.sa...
来源: Laya_社区 发布时间: 20180510
...自定义一下方法 比如: private formatNumber(value: number): string { if (value === 0) return '0'; const absValue = Math.abs(value); const sign = value < 0 ? '-' : ''; // 简单的单位转换 if (absValue >= 1e9) { ...
来源: Laya_社区 发布时间: 20251211
...msg; ByteBuf buf = frame.content(); //真正的数据是放在buf里面的 String aa = buf.toString(Charset.forName("utf-8")); //将数据按照utf-8的方式转化为字符串 System.out.println(aa); 其中的aa输出为“ ” 附件 : --> 2017-04-05 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170405