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

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

1. 和原生Dom交互 · LayaAir3.0文档 · LAYABOX [ 100%]

... the buffer in the AudioBufferSourceNode source.buffer = myArrayBuffer; // connect the AudioBufferSourceNode to the // destination so we can hear the sound source.connect(audioCtx.destination); // start the source playing source.start(); } 运行上面的js代码,单击页面就会听到声音播...

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

2. 网络通信 · LayaAir3.0文档 · LAYABOX [ 93%]

...收文本和二进制数据。我们先来了解下 Socket 的用法 3.1.1 Connect 服务器 Socket 连接服务器有三种方式: 方式 说明 构造函数传参 立即连接 比如 new Socket(“192.168.1.2”,8899);注意这里的host参数没有ws前缀。 connect方法 传递url和端口...

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