JQuery: Return $.get() callback to outer scope

后端 未结 4 868
生来不讨喜
生来不讨喜 2020-12-22 07:00

I\'m working on this validation script for my latest project, and one of the requirements is that it checks if the value that the user enters is in the database, and if it i

4条回答
  •  太阳男子
    2020-12-22 07:34

    The get function is asynchronous. You process the results probably before an answer has arrived.

提交回复
热议问题