相关文章推荐
打盹的泡面  ·  python excel file ...·  2 年前    · 
爱旅游的手套  ·  using must in ...·  2 年前    · 
在html里head区加上这么一段代码:
<meta http-equiv="pragma" content="no-cache"  />
<meta http-equiv="content-type" content="no-cache, must-revalidate" />
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT"/>

清除临时缓存

<body onLoad="javascript:document.yourFormName.reset()">

jquery ajax清除浏览器缓存的两种方法:
1.通过$.ajaxSetup 设置属性cache:false,让ajax不调用浏览的缓存.
jQuery.ajaxSetup ({cache:false})

2.可以在ajax的url后加上随机串来避免浏览缓存,如$.ajax({url:'test.php?'+parseInt(Math.random()*100000)})缓存