0
我想要做的是有一个按钮,您可以点击刷新评论部分,而无需重新加载页面。 这看起来应该很简单,但我无法让我的头绕着Ajax。用ajax刷新div(WordPress的评论)
(没有按钮,只是还没有,只是一个时间间隔)
setInterval(function(){
$(".commentswrapper").load("html");
}, 10000);
Failed to load resource: the server responded with a status of 404 (Not Found)
localhost:8888/post-title/html
(HTTP:从链接//省略,因为SO不会让我敷在代码标签或以其他方式张贴)
不应该只是刷新该div的html?