Home > Web Front-end > JS Tutorial > 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
Release: 2016-05-16 16:45:01
Original
1068 people have browsed it

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.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template