当前位置:网站首页>Ajax cache prevention method
Ajax cache prevention method
2022-04-23 08:25:00 【beinlife】
stay Ajax Sent URL Time stamp after parameter :'?time='+new Date().getTime()
as follows :
$.ajax({
type:'get',// Request mode
url:'/mobilemode/apps/solex/dbsy/queryToDo.jsp?time='+(new Date()).getTime(),
data:'',
dataType:'json',// The request type is json
timeout:7000,// Stop the request after the request times out
success: function(json){
var d=json.total;// direct .total obtain total attribute
$('#count').html(" To do ("+d+")");
}
});
版权声明
本文为[beinlife]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230734169156.html
边栏推荐
猜你喜欢
Talk about the basic but not simple stock data
Ansible Automation Operation and Maintenance details (ⅰ) Installation and Deployment, Parameter use, list Management, Profile Parameters and user level ansible operating environment Construction
An article understands variable lifting
一键清理项目下pycharm和Jupyter缓存文件
5.6 综合案例-RTU-
Goland 调试go使用-大白记录
欧圣电气深交所上市:市值52亿 陆为东父女为美国籍
QT compilation qtxlsx Library
Failed to convert a NumPy array to a Tensor(Unsupported Object type int)
LeetCode簡單題之計算字符串的數字和
随机推荐
LeetCode简单题之统计字符串中的元音子字符串
Talk about the basic but not simple stock data
js常用数组方法
My heart's broken! A woman's circle of friends envied others for paying wages on time and was fired. Even her colleagues who liked her were fired together
AAAI 2022 recruit speakers!!
Qt读写XML文件
Asan minimalism
MySQL数据库中delete、truncate、drop原理详解
CGM优化血糖监测管理——移宇科技亮相四川省国际医学交流促进会
RPC过程
stm32以及freertos 堆栈解析
Green apple film and television system source code film and television aggregation film and television navigation film and television on demand website source code
Install MySQL for Ubuntu and query the average score
LeetCode简单题之重新排列日志文件
Common regular expressions
Use of applicationreadyevent
SYS_CONNECT_BY_PATH(column,'char') 结合 start with ... connect by prior
关于ORB——SLAM运行中关键帧位置越来越近的异常说明
分组背包呀
[explanation] get ora-12838: cannot read / modify an object after modifying it in parallel