JQUERY的AJAX请求缓存里的数据问题处理
- 参数type由get改成post
- 添加参数cache并设置成false
- 添加时间戳
$.ajax({
url: 'ios/index',
cache: false,
type: 'post',
data: {
timestamp: new Date().getTime()
//params here
},
dataType: 'json'
}).done(function (data) {
//codes here
});是不是非常的简单呢,希望小伙伴们能够喜欢。
相关推荐
curiousL 2020-08-03
wcqwcq 2020-06-26
delmarks 2020-06-14
ppsurcao 2020-06-14
tthappyer 2020-06-07
kentrl 2020-11-10
结束数据方法的参数,该如何定义?-- 集合为自定义实体类中的结合属性,有几个实体类,改变下标就行了。<input id="add" type="button" value="新增visitor&quo
ajaxyan 2020-11-09
zndy0 2020-11-03
学留痕 2020-09-20
learningever 2020-09-19
chongxiaocheng 2020-08-16
ajaxhe 2020-08-16
lyqdanang 2020-08-16