0
点赞
收藏
分享

微信扫一扫

Flask使用Ajax请求后,请求成功,但没有返回值


问题描述

在使用 Form 表单提交时,使用 Button 按钮触发 Ajax 函数,提交请求后,无返回值。

解决

如果使用 <button></button> 触发函数,那应该放在 <form></form>的外面。

或者

添加 type 的值为 button

<button type = "button" ></button>

 

举报

相关推荐

0 条评论