Want to see, understand the elder teach me
CodePudding user response:
Request the json data is not support synchronously,Setting the async: false invalid
So the only way to switch to an asynchronous callback function returns a value,
CodePudding user response:
The json and ajax requests or distinguishingThe ajax request is XMLHttpRequest
Json is adding a script tag, async: false Settings take effect, can't sync,
In the logic inside the success of the json
CodePudding user response:
I will not sad??????