Home  >  Article  >  Web Front-end  >  A brief analysis of the problems encountered in different browsers when calling the ajax method in jQuery_jquery

A brief analysis of the problems encountered in different browsers when calling the ajax method in jQuery_jquery

WBOY
WBOYOriginal
2016-05-16 16:45:011047browse

Today, when I use Firefox to debug a method that uses the encapsulation in jQuery to interact with the background, Firefox does not pop up the window.
But it passed successfully with Google Chrome before. Later, I discovered that each browser handles browser default values ​​differently. Summary:
If json is returned, this parameter should be taken, and the same applies if text is returned.
$.post(url,param,function(data),param);//The last parameter param corresponds to the type of returned information and should generally be brought to avoid
caused by different default settings of different browsers question.

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