response.statusText=“OK” but falls into error callback from ajax with jQuery

后端 未结 6 908
余生分开走
余生分开走 2021-01-13 16:16

Server side:

 ....
    $_SESSION[\'accountId\'] = $accountId;
    $_SESSION[\'type\'] = $_POST[\'accountType\'];
    echo \'1\';
    return;
<
6条回答
  •  花落未央
    2021-01-13 16:50

    It might be a good idea to specify a URL option:

    $.ajax(
    {
        url:'foo.php',
        type:'POST',
        ...
    

提交回复
热议问题