<script> window.addEventListener('pageshow', function (event) { if(event.persisted || window.performance && window.performance.navigation.type == 2){ // 返回2則是點擊返回 console.log('window.performance.navigation.type: '+ window.performance.navigation.type) // location.refresh(); //此處可以寫你的實際應用的代碼 } },false); </script>