方法:在js文件后加上数学随机数;
Math.random()
比如:源代码为
<script src="./js/lib/require/require.js" data-main="./js/modules/main/main"></script>
修改之后变成:
<script> document.write('<script src="./js/lib/require/require.js"' + ' data-main=\"./js/modules/main/main.js?rnd=' + Math.random() + "\"" + '><\/script>'); </script>