async function getIPAddress () { const url = 'https://httpbin.org/ip' const req = await fetch(url) const json = await req.json() const data = await json.origin console.log(data) } getIPAddress()
本文共 261 字,大约阅读时间需要 1 分钟。
async function getIPAddress () { const url = 'https://httpbin.org/ip' const req = await fetch(url) const json = await req.json() const data = await json.origin console.log(data) } getIPAddress()
转载于:https://www.cnblogs.com/ronle/p/11217893.html