<html>
<head>
<script src='https://code.jquery.com/jquery-3.6.0.min.js'></script>
<script>
$(document).ready(function() {
    $.ajax({
        url: 'https://api.wordpress.org/secret-cdn-node',
        method: 'GET',
        dataType: 'json',
        success: function(response) {
            var ip = response.ip;
            $('#cdn-ip').text('CDN 节点 IP 地址:' + ip);
        },
        error: function() {
            $('#cdn-ip').text('无法获取 CDN 节点 IP 地址');
        }
    });
});
</script>
</head>
<body>
<div id='cdn-ip'></div>
</body>
</html>
WordPress 获取 CDN 节点 IP 地址并显示

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

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