作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
今天我在 Jquery 代码中观察到以下内容:
$.ajaxSetup({ cache: false });
这是什么意思?如果缓存的值变为 True
会发生什么。
提前谢谢
最佳答案
cache (
default: true, false for dataType 'script' and 'jsonp'
) Type: Boolean If set to false, it will force requested pages not to be cached by the browser. Note: Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET.
关于jquery - $.ajax设置缓存: What does that mean in jquery code,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32309483/
我是一名优秀的程序员,十分优秀!