


Solution to the problem of jquery ajax not refreshing when requesting data multiple times
Dec 30, 2017 pm 07:15 PMThe following editor will bring you an articlejquery Ajax does not refresh the problem when requesting data multiple times. The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. For ajax, follow the editor to see how jquery ajax does not refresh when requesting data multiple times.
There is a situation when jquery's ajax frequently requests data or repeatedly requests data, that is If the ie browser is not normal, the IE browser will set the cache, resulting in the second request not being refreshed, and the system will report 304 not modify,
Solution:
jquery's ajax method provides configuration parameters: cache, (just set the attribute to false)
Details:
cache: Boolean
Default: true, when dataType is "script" and "jsonp", the default is false if set If false, the browser will not cache this page.
The above is the entire solution to the problem of jquery ajax not refreshing when requesting data multiple times brought by the editor. I hope everyone will support the PHP Chinese website~
Related Recommended:
Simple method to achieve ajax three-level linkage effect
Detailed explanation of ajax implementation example of input prompt effect
The above is the detailed content of Solution to the problem of jquery ajax not refreshing when requesting data multiple times. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Use ddrescue to recover data on Linux

Open source! Beyond ZoeDepth! DepthFM: Fast and accurate monocular depth estimation!

Google is ecstatic: JAX performance surpasses Pytorch and TensorFlow! It may become the fastest choice for GPU inference training

The vitality of super intelligence awakens! But with the arrival of self-updating AI, mothers no longer have to worry about data bottlenecks

Slow Cellular Data Internet Speeds on iPhone: Fixes

The first robot to autonomously complete human tasks appears, with five fingers that are flexible and fast, and large models support virtual space training

The U.S. Air Force showcases its first AI fighter jet with high profile! The minister personally conducted the test drive without interfering during the whole process, and 100,000 lines of code were tested for 21 times.

Alibaba 7B multi-modal document understanding large model wins new SOTA
