<!DOCTYPE html>
<html>
<head>
    <title>Get Current Website IP</title>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script>
        $(document).ready(function() {
            $.getJSON("https://api.ipify.org?format=json", function(data) {
                $("#ipAddress").text(data.ip);
            });
        });
    </script>
</head>
<body>
    <h1>Current Website IP Address:</h1>
    <p id="ipAddress"></p>
</body>
</html>
写一个html代码获取当前网站ip并输出

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

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