Return False not working inside jQuery.ajax

前端 未结 7 1908
再見小時候
再見小時候 2021-02-08 17:38

P.S.: Read \"EDITED on 2019-06-29\":

I have a webform for updating user information, and when he updates his email a verification is performed via

7条回答
  •  闹比i
    闹比i (楼主)
    2021-02-08 18:02

    You run async code here. At the moment you are trying to return false, it is far to late. Your function already returned undefined. You need to provide a callback if you want to process the result of your success.

提交回复
热议问题