發出網路請求
你可以使用 Web 技術提供的 fetch 方法或 Node.js 原生 https 模組來發出網路請求。
使用 fetch 發出網路請求
fetch 發出網路請求fetch('https://example.com/api/endpoint')
.then(response => response.json())
.then(data => {
// 在這裏處理回應
});使用 https 發出請求
https 發出請求Last updated