weixin_33701564 2019-06-21 08:05 采纳率: 0%
浏览 38

阿贾克斯上服务器灯

I have this code:

$.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;
           }
    }); 
  });


in localhost everything works fine. However, on a lamp server works everything but not

$.get('removefile.php');

I also tried to put all the path to the file, /var/www/html/folderproject/removefile.php, but it didn't worked.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 stata安慰剂检验作图但是真实值不出现在图上
    • ¥15 c程序不知道为什么得不到结果
    • ¥40 复杂的限制性的商函数处理
    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题