<script>
document.write("<s"+"cript type='text/javascript' src='/js/test.js?"+Math.random();+"'></scr"+"ipt>");
</script>
其他的类似,只需在地址后加上+Math.random()
注意:因为Math.random() 只能在Javascript 下起作用,故只能通过Javascript的调用才可以
<script>
document.write("<s"+"cript type='text/javascript' src='/js/test.js?"+Math.random();+"'></scr"+"ipt>");
</script>
其他的类似,只需在地址后加上+Math.random()
注意:因为Math.random() 只能在Javascript 下起作用,故只能通过Javascript的调用才可以
转载于:https://www.cnblogs.com/chaozhijinlong/p/3422844.html