JQUERY's AJAX requests data processing in the cache
- 2021-01-03 20:50:05
- OfStack
The parameter type is changed from get to post
Add the parameter cache and set to false
Add a timestamp
$.ajax({
url: 'ios/index',
cache: false,
type: 'post',
data: {
timestamp: new Date().getTime()
//params here
},
dataType: 'json'
}).done(function (data) {
//codes here
});
Is it very simple? I hope you like it.