大约有 39 项符合查询结果, 库内数据总量为 31,715 项。 (搜索耗时: 0.0026 秒)
Laya_社区(21) laya_api(4) Laya2.0_api(4) Laya3.0_api(4) Laya2.0_示例(2) Laya_示例(2) Laya2.0_文档(1) Laya3.0_文档(1)
...//iOS注意函数签名,注意与Android的不同 alert(bridge.call("testString:","hello")); alert(bridge.call("testNumber:",256.0)); alert(bridge.call("testBool:",false)); obj.value = "Hello OC!"; bridge.callWithBack(function(value: any) { var obj = JSON.parse(value) alert(obj.value); },"testAsyn...
来源: Laya3.0_文档 发布时间: 20250422
...); this.addChild(this.hbox); }else{ this.hbox.removeChildren(); } var cout:string = value.toString(); for(var i=0;i<cout.length;i++){ var clip: Laya.Clip = new Laya.Clip("loading/num0-9.png", 10, 1); clip.index = parseInt(cout.charAt(i)); this.hbox.addChild(clip); } var clip_perc:Laya.Clip = new ...
来源: Laya_社区 发布时间: 20180615
...自定义一下方法 比如: 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
....update(); } if (Laya.timer.currFrame % 60 === 0) { text.text = Stat.FPS.toString(); } } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import Animation = Laya.Animation; import Sprite = Laya.Sprite; export class Performance...
来源: Laya_示例 发布时间: 20260130
....update(); } if (Laya.timer.currFrame % 60 === 0) { text.text = Stat.FPS.toString(); } } } class Character extends Laya.Sprite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnimation(images); this.createBloodBar(); this.createNameLabel(); ...
来源: Laya2.0_示例 发布时间: 20260130
...以解决了,安装apk: public static boolean install(Context context, String filePath) { Intent i = new Intent(Intent. ACTION_VIEW); File file = new File(filePath); if (file != null && file.length() > 0 && file.exists() && file.isFile()) { i.setDataAndType(Uri.parse("...
来源: Laya_社区 发布时间: 20160104
...x:int = _keys.indexOf(key); if (index >= 0) return index; key = (key is String) ? Number(key) : ((key is Number) ? key.toString() : key); return _keys.indexOf(key); } /** * 返回指定键名的值。 * @param key 键名对象。 * @return 指定键名的值。 */ public function get(key:*):* { v...
来源: Laya_社区 发布时间: 20180619
...ay<any>, coverBefore?: boolean): void; /** 返回统计信息。*/ toString(): string; /** * 清理定时器。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 */ clear(caller: any, method: Function): void; /** * 清理对象身上的所有定时器。 * @param call...
来源: Laya_社区 发布时间: 20171109