[英]How can I reload my js files when I restart my tomcat
當我更新並重置我的web project
,客戶端瀏覽器無法獲取最新的js
文件。
那么如何解決這個問題呢。
我很感激你能給我一些建議
或者像下面一樣加載js文件
<script>
document.write("<script type='text/javascript' src='/js/test.js?"+Math.random();+"'></script>");
</script>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.