大约有 87 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0033 秒)
...XMediaMessage对象 WXImageObject imgObj = new WXImageObject(shareBitmap); msg.mediaObject = imgObj; // 设置缩略图 Bitmap thumbBmp = Bitmap.createScaledBitmap(shareBitmap,150,150,true) ; shareBitmap.recycle () ; msg.setThumbImage(thumbBmp); // 构造一个Req SendMessageToWX.Req req = new SendM...
来源: Laya_社区 发布时间: 20180329
...边给window对象注册一个方法: window["natvieCallJs"] = function(msg,data){ }.bind(this);然后,Java这边: public static void callToJs(int msg, JSONObject data) { StringBuilder cmd = new StringBuilder("window.natvieCallJs("); cmd.append(msg); cmd.append(','); cmd.append(data); cmd.a...
来源: Laya_社区 发布时间: 20190515
...sSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_client_name'], msg['content']); } private AddChat(seat:number, name:string, txt:string) { let paopao = new ui.langren.room.SayBoardUI(); paopao.x = 10; paopao...
来源: Laya_社区 发布时间: 20170911
为什么SOCKET接收数据BYTE内存会越来越大 接收数据_msgByte每次都调用clear(),且每次接收的数据大小是一致的; 但在google监视内存发现内存越来越大 private receiveHandler(msg: any = null): void { ///接收到数据触发函数 this._msgByte.clear(); this._...
来源: Laya_社区 发布时间: 20171214
...es) { // webSocket打开事件处理 console.log('websocket opened.'); var msg = JSON.stringify({ Hello: { Name: 'hi lei lei~' }}) wx.sendSocketMessage({ data: msg }); }); wx.onSocketError(function (res) { // 链接出错时的处理 console.log('webSocket fail'); }); wx.onSocketMessage(function (re...
来源: Laya_社区 发布时间: 20180528
...tring):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_client_name'], msg['content']); } private AddChat(seat:number, name:string, txt:string) { let paopao = new ui.langren.room.SayBoardUI(); paopao.x = 10; paopao...
来源: Laya_社区 发布时间: 20170911
...模拟的,服务端接收代码 WebSocketFrame frame = (WebSocketFrame)msg; ByteBuf buf = frame.content(); //真正的数据是放在buf里面的 String aa = buf.toString(Charset.forName("utf-8")); //将数据按照utf-8的方式转化为字符串 System.out.println(aa); 其中的aa输出为“ ...
来源: Laya_社区 发布时间: 20170405
...sSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay(msg:any):void { this.AddChat(msg['from_client_seatsno'], msg['from_client_name'], msg['content']); } private AddChat(seat:number, name:string, txt:string) { let paopao = new ui.langren.room.SayBoardUI(); paopao.x = 10; paopao...
来源: Laya_社区 发布时间: 20170911
...接; console.log("建立"+event);//没有写出 } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 console.log("收到"+msg);;//没有写出 console.log(msg);;//没有写出 } private closeHandler(e: any = null): void { //关闭事件 console.log("关闭"+e); } privat...
来源: Laya_社区 发布时间: 20180210
...log("conect to 127.0.0.1"); } protected _onMessage(msg: any): void { super._onMessage(msg); console.log("receve msg : "); console.log(msg); } protected _onClose(...args: any[]): void { ...
来源: Laya_社区 发布时间: 20170602