若是不须要浏览器作缓存,能够试一下在header里写一些信息(具体没试过,网上找的)javascript
<meta http-equiv="Expires" content="0"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Cache-control" content="no-cache"> <meta http-equiv="Cache" content="no-cache">
动态加载js文件,在js资源url后加随机数java
<script> document.write("<script type='text/javascript' src='js/test.js? "+ Math.random(); +"'></script>"); </script>