Home >Web Front-end >JS Tutorial >Quick solution to ajax failure in compatibility mode_jquery

Quick solution to ajax failure in compatibility mode_jquery

WBOY
WBOYOriginal
2016-05-16 15:09:501235browse

Use jQuery and ajax to implement the partial refresh function. In Firefox and 360 Rapid Browser high-speed mode, ie8 and 9 can run normally, but switching to compatibility mode will not work. There are two solutions to turn off browser compatibility. View, the second is to introduce the json2.js file

The first method is adopted here, and a perfect compatibility solution is used, adding

to the head

<meta http-equiv="X-UA-Compatible" content="IE=9;IE=8;IE =7;IE=EDGE">
That’s it!

The above quick solution to ajax failure in compatibility mode is all the content shared by the editor. I hope it can give you a reference, and I hope you will support Script Home.

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