Home  >  Article  >  Web Front-end  >  How to get the value returned by $.ajax() event and add the event in jquery_jquery

How to get the value returned by $.ajax() event and add the event in jquery_jquery

WBOY
WBOYOriginal
2016-05-16 18:29:24910browse

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

Copy code The code is as follows:



Test JQUERY submission of dynamic text













Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn