大约有 3 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0020 秒)
...: number): void { // 控制台打印输出进度 console.log("进度:" + Math.floor(value * 100) + "%"); } } 示例效果如下: (动图2-1) ProgressBar的其他属性也可以通过代码来设置,上述示例演示了如何通过代码创建ProgressBar,有兴趣的开发者可以自己...
来源: Laya3.0_文档 发布时间: 20241014
...ffer.getChannelData(channel); for (var i = 0; i < frameCount; i++) { // Math.random() is in [0; 1.0] // audio needs to be in [-1.0; 1.0] nowBuffering[i] = Math.random() * 2 - 1; } } // Get an AudioBufferSourceNode. // This is the AudioNode to use when we want to play an AudioBuffer var source = a...
来源: Laya3.0_文档 发布时间: 20241014
...ile(url, localfile, (total, now, speed) => { console.log(`downloading:${Math.floor((now / total) * 100)}`) return false;0 }, (curlret, httpret) => { if (curlret != 0 || httpret < 200 || httpret >= 300) { resolve(null); } else { resolve(localfile); } }, 10, 100000000); } ); } let zipfile ...
来源: Laya3.0_文档 发布时间: 20241024