        xhr.send();
            }

            function clearLog() {
                var xhr = new XMLHttpRequest();
                xhr.open('POST', '/cgi-bin/luci/admin/services/ddns-go/clear_log', true);
                xhr.onload = function () {
                    if (xhr.status >= 200 && xhr.status < 300) {
                        fetchLog();  // 刷新日志内容
                    } else {
                        alert('Failed to clear log.');
                    }
                };
             