大约有 55 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
... WebSocket 发送到服务器。 this.socket?.send(greetingBuffer); }; // 接收服务器返回的消息 this.socket.onmessage = (event) => { //将 event.data 转换为 Uint8Array 类型,以便传递给解码函数 handleServerResponse 进行处理。 const buffer = new Uint8Array(event.data); ...
来源: Laya3.0_文档 发布时间: 20251010
...event);//没有写出 } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 console.log("收到"+msg);;//没有写出 console.log(msg);;//没有写出 } private closeHandler(e: any = null): void { //关闭事件 console.log("关闭"+e); } private errorHandler(e: any = null...
来源: Laya_社区 发布时间: 20180210
...建立连接; console.log("链接"); } function receiveHandler(msg){ ///接收到数据触发函数 console.log("接受"); } function closeHandler(e){ //关闭事件 console.log("关闭"); } function errorHandler(e){ //连接出错 console.log("出错"); } 输出:出错-关闭 有哪里写的...
来源: Laya_社区 发布时间: 20180125
...er 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知。 Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.on Defined in laya/events/EventDis...
来源: Laya3.0_api 发布时间: 20231115
...DEMO 只是改了URL 为何单独放在本地的一个laya文件里可以接收数据,在官网上的提交没反应呢? 单独用在其它文件也是没有反应, var LoginView = (function (_super) { function LoginView() { LoginView.super(this); //调用父类构造函数 this.dlg; } fun...
来源: Laya_社区 发布时间: 20170215
...er 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知。 Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.on Defined in laya/events/EventDis...
来源: Laya3.0_api 发布时间: 20231115
...er 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知。 Parameters type: string 事件的类型。 listener: Function 事件侦听函数。 Returns EventDispatcher 此 EventDispatcher 对象。 Inherited from EventDispatcher.on Defined in laya/events/EventDis...
来源: Laya3.0_api 发布时间: 20231102
...方便下次读写; } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 // this.socket.send("!!!!!!!!!!!!!!!!!!!!!!!!!!"); } private closeHandler(e: any = null): void { //关闭事件 // this.socket.send("!!!!!!!!!!!!!!!!!!!!!!!!!!"); } private errorHandler(e: any = nu...
来源: Laya_社区 发布时间: 20171129
...密逻辑开始处理数据。 var byte:Byte = new Byte(data);//Byte数组接收arraybuffer byte.writeArrayBuffer(data,4);//从第四个字节开始读取数据 var blob:Object = new Browser.window.Blob([byte.buffer], { type: "image/png" }); var url:String = Browser.window.URL.createObjectURL(blob);...
来源: Laya_社区 发布时间: 20171011
...解密逻辑开始处理数据 var byte = new Laya.Byte(data); //Byte数组接收arraybuffer // byte.writeArrayBuffer(data,4);//从第四个字节开始读取数据 var blob = new Laya.Browser.window.Blob([byte.buffer], { type: "image/png" }); var url = Laya.Browser.window.URL.createObjectURL(blob);...
来源: Laya_社区 发布时间: 20180629