jquery html网络::错误\u连接\u重置
我在jQuery中遇到以下错误: 加载资源失败:网络::错误\u连接\u重置 使用post方法在java中执行apache2服务器之后jquery html网络::错误\u连接\u重置,jquery,Jquery,我在jQuery中遇到以下错误: 加载资源失败:网络::错误\u连接\u重置 使用post方法在java中执行apache2服务器之后 $(document).on("click", "#restartServer", function() { $.post('/advyteam/ajax/admin/serverRestart',function() {}) $.done(function() { //do something }) $.fail(functio
$(document).on("click", "#restartServer", function() {
$.post('/advyteam/ajax/admin/serverRestart',function() {})
$.done(function() {
//do something
})
$.fail(function(){
// do something when post failed
})
})
但问题是,当我确实发布它时,它工作正常,但我在
.fail
块中获得了代码。事实并非如此。看起来您的服务器没有侦听80
/443
(并且端口未被过滤)。也许它正忙着重新启动?