Home > Article > Web Front-end > How to get the value returned by $.ajax() event and add the event in jquery_jquery
If you want to get the value returned in $.ajax(), it is not possible to use success:funciton(){return xx} directly. If you want to get the value of xx, you must use global variables in the script. Use global variables to derive the value of xx.
jquery gets the return value in the $.ajax event and adds the event