首页 > TAG信息列表 > TransformStream

js: TransformStream 浏览器上的流转换

class UpperCaseTransformStream { constructor() { return new TransformStream({ transform(chunk, controller) { controller.enqueue(chunk.toUpperCase()); }, }); } } (async () => { const response = await fetch("/index