📜  在 JAVASCRIPT 代码示例中获取 IP 地址地理数据

📅  最后修改于: 2022-03-11 15:01:29.138000             🧑  作者: Mango

代码示例1
fetch(`https://ipinfo.io/USERIPADDRESS?token=YOUR-TOKEN-FROM-IPINFOSITE`).then(response => response.text()).then(data => {
    console.log(data)
});