Ajax request returns nothing. why?

前端 未结 3 1961
无人共我
无人共我 2021-01-24 12:14

Below is the ajax request.

$.post(\'delete.php\', {\'deletearray\':deletearray, \'dir\':dir}, function(deleted, undeleted){
    if(undeleted == 0) {
        aler         


        
3条回答
  •  借酒劲吻你
    2021-01-24 12:49

    The best way to do jquery + ajax + php is as next:

    jquery:

    
    
    

    PHP:

     $deleted, 'undeleted' => $undeleted)));
            exit();
        }
    ?>
    

提交回复
热议问题