jquery.ajax nginx return packet receiving pit

jquery.ajax nginx return packet receiving pit

Usually we use jquery.ajax receive data returned by the client directly in the success methods in the data for processing. Then when we add nginx After that, we will not receive the data, at this time we would suspect that is not nginx something goes wrong, because there is no nginx will be able to receive data, using not receive, it is difficult to doubt ajax go there .
Finally, as with their own ajax widgets found that can do it, to finally locate the problem jquery.ajax on.

allWe should amend the method for the complete success method to receive data

Released six original articles · won praise 4 · views 96

Guess you like

Origin blog.csdn.net/qq_42661628/article/details/103458040