• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 158 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0033 秒)

31. 网络和格式-POST [ 85%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); this.showLogger(); } connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this.onHtt...

来源: Laya2.0_示例 发布时间: 20240930

32. 网络和格式-GET [ 85%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.connect(); this.showLogger(); } connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this.onHtt...

来源: Laya2.0_示例 发布时间: 20240930

33. js socket 连接不上 [ 85%]

...isten(server); server.listen(8888); console.log("服务器启动"); io.on('connection', function (ws) { console.log('客户端连接成功!'); ws.on('foo', function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> <head> <meta charset="UTF-8">...

来源: Laya_社区 发布时间: 20180509

34. laya.net.Socket [ 84%]

...步方式传输和接收数据。 Public Properties PropertyDefined By  connected : Boolean[read-only] 表示此 Socket 对象目前是否已连接。 Socket  disableInput : Boolean = false 不再缓存服务端发来的数据。 Socket  endian : String 主机字节序,是 CPU 存放数据...

来源: laya_api 发布时间: 20170929

35. laya.net.Socket_API3.0 [ 83%]

...uctor Properties disableInput protocols BIG_ENDIAN LITTLE_ENDIAN Accessors connected endian input output Methods cleanSocket close connect connectByUrl event flush hasListener off offAll offAllCaller on once send Constructors constructor new Socket(host?: string | null, port?: number, byteClass?: {}...

来源: Laya3.0_api 发布时间: 20231115

36. LayaAir中怎么使用node.js 的 socket.io [ 82%]

...懂 Laya_XS • 2016-12-14 17:08 例如: js的使用方法:var xx = io.connect(); as的使用方法 var xx:* = __JS__('io.connect()'); xx.on('connect',function():void{trace("dddd")}); piaobo80 • 2017-08-18 14:12 如果ts呢引入js后改怎样在ts中调用呢? Laya_XS • 2017-08-...

来源: Laya_社区 发布时间: 20161214

37. IDE开启调试自动超时关闭 [ 82%]

...过10s就报超时,然后浏览器自动关掉,接着报错: Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ETIMEDOUT 127.0.0.1:8185).   更改过port端口 卸载过谷歌浏览器 就差重装系统了,还有没有解TAT 附件 :...

来源: Laya_社区 发布时间: 20180713

38. websocket服务端显示连接成功,客户端未进行回调 [ 82%]

...ver服务 var server = net.createServer(function (conn) { console.log('new connection is connecting') conn.write('\n hello buddy') }); server.listen(8081, function () { console.log('server is listening') // server.emit('connection'); }); 2019-04-23 添加评论 免费帖 --> 分享 微博 QZONE 微...

来源: Laya_社区 发布时间: 20190423

39. laya.net.Socket [ 80%]

...步方式传输和接收数据。 Public Properties PropertyDefined By  connected : Boolean[read-only] 表示此 Socket 对象目前是否已连接。 Socket  disableInput : Boolean = false 不再缓存服务端发来的数据,如果传输的数据为字符串格式,建议设置为true,...

来源: Laya2.0_api 发布时间: 20190513

40. 怎么集成导入mqtt.js到laya中 [ 79%]

...age: Paho.MQTT.Message; private self = this; public constructor() { public connect(url, port, client): void { //初始化 this.client = new Paho.MQTT.Client(url, Number(port), client); // set callback handlers //连接消失 收到消息 this.client.onConnectionLost = this.onConnectionLost; this.cli...

来源: Laya_社区 发布时间: 20180903