search

Home  >  Q&A  >  body text

No pop-up window will be displayed if editing is successful

Why there is no pop-up prompt after I click submit, and using the editor I can only change from disable to enable, but cannot change enable to disable1.png2.png

「        」「 」1780 days ago1172

reply all(2)I'll reply

  • .

    .2020-04-30 01:20:03

       if ($result == true) {            $status1 = 1;            $message = '更新成功';            //return ['status'=>$status1, 'message'=>$message1];                    } else {            $status1 = 0;            $message = '更新失败,请检查';                    }        // header('Content-Type:application/json');        $ret =['status'=>$status1, 'message'=>$message];        return $ret;

    reply
    0
  • .

    If you change it to this, there will be a prompt box when you modify it. Return cannot directly return an array.

    . · 2020-04-30 01:21:27
  • Cancelreply