Fetch 示例 Fetch URL javascript addEventListener("fetch", event > { return event.respondWith( fetch(" ) }) 带构建函数 javascript async function handleRequest() { const init { headers: { "contenttype": "application/json;charsetUTF8", }, redirect: "follow" } const response await fetch(url, init) return new Response(response, init) } addEventListener("fetch", event > { return event.respondWith(handleRequest()) }) 相关参考 示例代码:发起网络请求获取远程资源