文章详情
免费本机外网IP地址查询网站
Posted on 2018-06-04 14:07:24 by 主打一个C++
fetch('https://ipinfo.io/json')
.then(response => response.json())
.then(data => {
console.log('ip归属地:', data);
})
.catch(error => {
console.error('获取ip归属地失败:', error);
});