13-JavaScript40-后端30-爬虫httpsProxyAgent 教程本页总览httpsProxyAgent 教程 安装 pnpm add https-proxy-agent 基本使用 const agent = new HttpsProxyAgent(`http://172.21.240.1:7890`);const sign = new AbortController();setTimeout(() => { sign.abort();}, 3000);const result = await fetch(url, { headers: headers, signal: sign.signal, agent: agent,});