大约有 69 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
Laya_社区(44) Laya2.0_文档(8) Laya3.0_api(5) Laya3.0_文档(4) Laya2.0_api(3) laya_api(3) Laya_示例(1) Laya2.0_示例(1)
...d(msg: any): void { console.log("接收到消息:"); if (typeof msg === "string") { console.log("文本数据:", msg); } else { console.log("接收到非字符串数据", msg); } // 清除输入缓存,避免残留数据 this.socket.input.clear(); } /** 连接关闭回调 */ private onSocketClo...
来源: Laya3.0_文档 发布时间: 20251010
...的参数却是个int类型? 加载一个txt文件 getRes出来类型为string 能转换成数组吗 找不到类型或类型不是编译时常量 问题状态 最新活动: 2017-11-14 14:44 浏览: 824 关注: 2 人 huoxiaoxie83 • 2017-11-14 17:42 非常感谢您的帮助 wudi199553 • 2017-11...
来源: Laya_社区 发布时间: 20171114
...rate "; for (let i = 0; i "); // 使用output.writeByte发送 var message: string = "demonstrate "; for (var i: number = 0; i "); // 使用output.writeByte发送 var message:String = "demonstrate "; for (var i:int = 0; i < message.length; ++i) { output.writeByte(message.charCodeAt(i)); } socket.flus...
来源: Laya2.0_示例 发布时间: 20251130
...以解决了,安装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
... private onBtnClickShare() { let base64OfQrCode:string = androidplat.createQrCode("https://www.layabox.com/", 180, 180); if (base64OfQrCode.length>0) { let img:Laya.Image = new Laya.Image(); img.skin =...
来源: Laya_社区 发布时间: 20200729
...ew coolDownShader(); constructor() { var vs: string = " \ attribute vec2 position; \ attribute vec2 texcoord; \ attribute vec4 color; \ uniform vec2 size; \ uniform mat4 mmat; \ ...
来源: Laya_社区 发布时间: 20170606
...b.append(fragment); blob = bb.getBlob("image/png"); } } var url: string = URL.createObjectURL(blob) var htmlImg: Laya.HTMLImage = Laya.HTMLImage.create(url);//这里创建HTMLImage 这里要用HTMLImage.create; if (onload != null) { htmlImg.onload = onload; } return htmlImg; } InfinityX ...
来源: Laya_社区 发布时间: 20170502
...不报错的demo可以参考? socket通信发送protobuf后服务端是string 官网http通信测试(有修改),pc\android访问显示正常,苹果手机显示不正常 LayaNative中webview通信 websocket通信,怎么解压 压缩的Byte? 问题状态 最新活动: 2017-06-20 17:54 浏...
来源: Laya_社区 发布时间: 20170620
...r socket:Socket=null; private var list:Array=; public function Connect(url:String):void { socket=new Socket(); socket.on(Event.OPEN, this, onSocketOpen); socket.on(Event.CLOSE, this, onSocketClose); socket.on(Event.MESSAGE, this, onMessageReveived); socket.on(Event.ERROR, this, onConnectError); sock...
来源: Laya_社区 发布时间: 20170724
...):Md5 { return this._inst ||(this._inst = new Md5()); } public get_md5(str:string):string { return this.md5(str); } split(target: string | any[], step: number, markString: boolean = typeof target === "string") { if (typeof target === "string") target = target.split(""); let result: any[] = target.ma...
来源: Laya_社区 发布时间: 20190321