<script type="text/javascript">
$(document).ready(function() {
//Check if the current URL contains '#'
if (document.URL.indexOf("#") == -1) {
alert('dfjdkjfkdj');
// Set the URL to whatever it was plus "#".
url = document.URL + "#";
location = "#";
//Reload the page
location.reload(true);
}
});
</script>
上記のコードは機能しません。 問題は何ですか?ウェブページを一度のみリフレッシュ/リロードする
が重複する可能性[私はjQueryを使ってページを更新するにはどうすればよい?](http://stackoverflow.com/questions/5404839/how-can-i-refresh-a-page-with-jquery) – Timothy
コンソールにエラーがありますか? – GolezTrol
取得しているエラーメッセージを入力してください。 –