我有此代码:
$.ajax({
type: "POST",
url: url,
data: form.serialize(), // Send the form information as
success: function(data) {
var data_succ = data;
alert(data_succ);
if(data_succ=="0"){ window.location.href = "problem.php"; }
if(data_succ=="2") {window.location.href = "summary.php";}
if(data_succ=="3") {window.location.href = "res.php";}
$.get('removefile.php');
return false;
},
error: function() {
window.location.href = "swrong.php";
return false;
}
});
});
在本地主机上一切正常。但是,在灯泡服务器上,一切正常,但不起作用
$.get('removefile.php');
我还尝试将所有路径都放置到/var/www/html/folderproject/removefile.php文件中,但是没有用。