当前位置:网站首页>ajax防止缓存方法
ajax防止缓存方法
2022-04-23 07:34:00 【beinlife】
在Ajax发送的URL参数后加上时间戳:'?time='+new Date().getTime()
如下:
$.ajax({
type:'get',//请求方式
url:'/mobilemode/apps/solex/dbsy/queryToDo.jsp?time='+(new Date()).getTime(),
data:'',
dataType:'json',//请求类型为json
timeout:7000,//请求超时后停止请求
success: function(json){
var d=json.total;//直接.total获取total属性
$('#count').html("待办事宜("+d+")");
}
});
版权声明
本文为[beinlife]所创,转载请带上原文链接,感谢
https://blog.csdn.net/beinlife/article/details/52766501
边栏推荐
- Data security has become a hidden danger. Let's see how vivo can make "user data" armor again
- Manipulator motion planning in 3C assembly
- NFT ecological development of Ignis public chain: unicorn Donation and development of Art
- 常用正则表达式
- 浅谈ES6尾调优化
- 5.6 comprehensive case - RTU-
- AQS & ReentrantLock 实现原理
- CGM optimizes blood glucose monitoring and management -- Yiyu technology appears in Sichuan International Medical Exchange Promotion Association
- 万物互联下如何对设备进行加密
- 5.6 综合案例-RTU-
猜你喜欢
【学习】从零开始的音视频开发(9)——NuPlayer
Goland 调试go使用-大白记录
CGM optimizes blood glucose monitoring and management -- Yiyu technology appears in Sichuan International Medical Exchange Promotion Association
欧圣电气深交所上市:市值52亿 陆为东父女为美国籍
谈谈那些基础但不简单的股票数据
vslam PPT
idea:使用easyYapi插件导出yapi接口
Ansible Automation Operation and Maintenance details (ⅰ) Installation and Deployment, Parameter use, list Management, Profile Parameters and user level ansible operating environment Construction
【深度好文】Flink SQL流批⼀体化技术详解(一)
岛屿的个数
随机推荐
校园转转二手市场源码下载
【路科V0】验证环境2——验证环境组件
ELK生产实践
万物互联下如何对设备进行加密
The simple problem of leetcode is to calculate the numerical sum of strings
LeetCode15. Sum of three
[effective go Chinese translation] part I
基于TCP/IP协议的网络通信实例——文件传输
多目视觉SLAM
Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam
[explanation] get ora-12838: cannot read / modify an object after modifying it in parallel
一键清理项目下pycharm和Jupyter缓存文件
Search the complete navigation program source code
Weekly leetcode - 06 array topics 7 ~ 739 ~ 50 ~ offer 62 ~ 26 ~ 189 ~ 9
Sword finger offer Day24 math (medium)
Comparison of indoor positioning methods of several intelligent robots
关于ORB——SLAM运行中关键帧位置越来越近的异常说明
Multi vision slam
There are some problems when using numeric type to query string type fields in MySQL
华硕笔记本电脑重装系统后不能读取usb,不能上网