Last active
April 29, 2021 15:09
-
-
Save deyvicode/f8d6c180bad55e28c34dce7beac723eb to your computer and use it in GitHub Desktop.
A async false request example #ajax #javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url: "/route", | |
type: "get", | |
async: false, // wait for res this request | |
success: res => { | |
}, | |
error: err => { | |
console.log(err); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment