📜  获取 ip 地址 js - Javascript 代码示例

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

代码示例6
function getIPFromAmazon() {
  fetch("https://checkip.amazonaws.com/").then(res => res.text())
    .then(data => console.log(data))
}

getIPFromAmazon()