recherche

Maison  >  Questions et réponses  >  le corps du texte

PHP怎么使用AJAX返回登录成功信息!

就是说,当我点击提交表单的按钮时,用ajax来发送请求,然后后台怎么返回登录成功或者登录失败的信息给前台页面去展示,整个过程是无刷新的!!求各位大神给点思路!!!

高洛峰高洛峰3064 Il y a quelques jours1257

répondre à tous(3)je répondrai

  • 潇寒

    潇寒2018-11-26 14:31:32

    https://guanchao.site/index.php/index/article/articledetail/artid/87.htmlCet article a une description détaillée

    répondre
    0
  • 初见xyz

    初见xyz2018-08-06 21:56:17

    Même question

    répondre
    0
  • 三叔

    三叔2016-10-22 09:11:17

    直接往response里写就行,ajax接受数据之后在回调函数里修改页面。怎么写要和前端统一格式,一般是往response里写个json数据

    répondre
    0
  • Annulerrépondre