写一段html代码获取当前网站IP并输出显示
Current Website 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>
原文地址: https://www.cveoy.top/t/topic/hBpe 著作权归作者所有。请勿转载和采集!