Home > Web Front-end > JS Tutorial > Handling data issues in JQUERY's AJAX request cache_jquery

Handling data issues in JQUERY's AJAX request cache_jquery

WBOY
Release: 2016-05-16 15:14:22
Original
1089 people have browsed it
  1. The parameter type is changed from get to post
  2. Add parameter cache and set it to false
  3. Add timestamp
$.ajax({
  url: 'ios/index',
  cache: false,
  type: 'post',
  data: {
    timestamp: new Date().getTime()
    //params here
  },
  dataType: 'json'
}).done(function (data) {
  //codes here
});
Copy after login

Isn’t it very simple? I hope you guys will like it.

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