Home > Q&A > body text
就是说,当我点击提交表单的按钮时,用ajax来发送请求,然后后台怎么返回登录成功或者登录失败的信息给前台页面去展示,整个过程是无刷新的!!求各位大神给点思路!!!
潇寒2018-11-26 14:31:32
https://guanchao.site/index.php/index/article/articledetail/artid/87.htmlThis article has a detailed description
初见xyz2018-08-06 21:56:17
The same question
三叔2016-10-22 09:11:17
直接往response里写就行,ajax接受数据之后在回调函数里修改页面。怎么写要和前端统一格式,一般是往response里写个json数据