获取当前网站IP地址

当前网站IP地址

<script>
    var xhttp = new XMLHttpRequest();
    xhttp.onreadystatechange = function() {
        if (this.readyState == 4 && this.status == 200) {
            document.getElementById('ip').innerHTML = this.responseText;
        }
    };
    xhttp.open('GET', 'https://api.ipify.org?format=json', true);
    xhttp.send();
</script>
获取当前网站IP地址的HTML代码

原文地址: https://www.cveoy.top/t/topic/o39P 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录