0
我有問題。我想在特定的時間重新加載/刷新page.php,例如07.45而不是每個持續時間,每5分鐘一次。直到現在我還沒有找到。也許在PHP或JavaScript或其他解決方案。請幫幫我。如何在特定時間重新加載page.php,例如:07.45。不持續時間,例如:每5秒
我有問題。我想在特定的時間重新加載/刷新page.php,例如07.45而不是每個持續時間,每5分鐘一次。直到現在我還沒有找到。也許在PHP或JavaScript或其他解決方案。請幫幫我。如何在特定時間重新加載page.php,例如:07.45。不持續時間,例如:每5秒
<meta http-equiv="refresh" content="10" />
setTimeout(function(){
window.location.reload(1);
}, 10000);
如果要刷新頁面上一定的時間,使用日期時間獲得:PHP的( 'H I')的功能。如果條件內部刷新頁面,請在使用setTimeout一段時間後繼續調用此函數。每當條件滿足條件提供的時間,頁面將刷新。
http://stackoverflow.com/questions/2787679/how-to-reload-page-every-5-second – 2015-03-25 04:53:14