diff --git a/discussion.php b/discussion.php index 3eddbf3..eb39314 100644 --- a/discussion.php +++ b/discussion.php @@ -81,6 +81,7 @@ function formatDate($id) { + Turtle Universe Web - Discussion + + +
+

我的实验室

+
+ +
+ + +
+ $module): ?> + + +
+
+
+ + +
+ <?= htmlspecialchars($subject) ?> +
+
+
-
+ +
+ + + +
+ +
+
+ +
+
+ +
+
+ + +
+ +
+

无法加载社区数据,请检查网络连接或稍后重试

+ +
+ +
+ + + + + + diff --git a/med.php b/med.php index 8c2c404..a846cf4 100644 --- a/med.php +++ b/med.php @@ -472,14 +472,17 @@ function remixExperiment() { alert('改编功能即将开放'); } // 使用JavaScript动态加载评论 -fetch('/comment/?category=&id=') +setInterval(()=>{ + fetch('/comment/?category=&id=') .then(response => response.text()) .then(html => { document.getElementById('comments').innerHTML = html; }) .catch(error => { document.getElementById('comments').innerHTML = '
加载评论失败
'; - }); + }); +}, 10000); +//每10s更新一次