📅  最后修改于: 2022-03-11 15:03:42.548000             🧑  作者: Mango
$.getJSON("https://api.ipify.org/?format=json", function(e) {
console.log(e.ip);
});
//Not included in the source, "api" can be changed to "api6" for IPv6
//addresses.