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

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

151. laya.net.Socket [ 33%]

...器。 Parameters data:* — 需要发送的数据,可以是String或者ArrayBuffer。 Event Detail close Event Event Object Type: laya.events.EventEvent.type property = Event.CLOSE 连接被关闭后调度。 error Event  Event Object Type: laya.events.EventEvent.type property = Event.ERROR 出...

来源: laya_api 发布时间: 20170929

152. laya.net.Socket [ 32%]

...器。 Parameters data:* — 需要发送的数据,可以是String或者ArrayBuffer。 Event Detail close Event Event Object Type: laya.events.EventEvent.type property = Event.CLOSE 连接被关闭后调度。 error Event  Event Object Type: laya.events.EventEvent.type property = Event.ERROR 出...

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

153. laya.net.Socket_API3.0 [ 31%]

...器。 Parameters data: any 需要发送的数据,可以是String或者ArrayBuffer。 Returns void Globals "laya/net/Socket" Socket constructor disableInput protocols BIG_ENDIAN LITTLE_ENDIAN connected endian input output cleanSocket close connect connectByUrl event flush hasListener off offAll of...

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

154. ProtocolBuffer通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 29%]

...s.socket = new WebSocket("ws://localhost:8080"); this.socket.binaryType = "arraybuffer"; // 连接成功时发送测试消息 this.socket.onopen = () => { console.log("WebSocket connected"); // 发送 ChatMessage 类型的打招呼消息,user 字段表示消息发送者的用户名。message ...

来源: Laya3.0_文档 发布时间: 20251010

155. LayaAir和原生DOM交互(ActionScript-2D进阶篇(AS3)-扩展模块) [ 28%]

...rate of the AudioContext var frameCount = audioCtx.sampleRate * 2.0; var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel < channels; c...

来源: Laya2.0_文档 发布时间: 20210715

156. 和原生Dom交互 · LayaAir3.3 · 引擎文档 · LAYABOX [ 27%]

...rate of the AudioContext var frameCount = audioCtx.sampleRate * 2.0; var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate); window.onclick = function() { // Fill the buffer with white noise; //just random values between -1.0 and 1.0 for (var channel = 0; channel &lt; channels...

来源: Laya3.0_文档 发布时间: 20251010

157. 微信小游戏加载资源问题 [ 10%]

... data.imgNativeUrl; } } static getUrlEncode(url, type) { if (type == &quot;arraybuffer&quot;) return &quot;&quot;; return &quot;utf8&quot;; } static downLoadFile(fileUrl, fileType = &quot;&quot;, callBack = null, encoding = &quot;utf8&quot;) { var fileObj = MiniFileMgr.getFileInfo(fileUrl); if (!fil...

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

158. 插件开发说明 · LayaAir3.3 · 引擎文档 · LAYABOX [ 10%]

...text", data: "this is demo text" }; type参数的可选值有text/json/xml/arraybuffer/bytes/filePath/custom,特别的,filePath是一个文件的绝对路径,custom可以指定一个自定义的回调函数。 如果资源不需要输出,那可以直接将输出内容置为空数组,即:...

来源: Laya3.0_文档 发布时间: 20251010