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
WBOYOriginal
2016-05-16 15:14:221098browse
  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
});

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

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