<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
받고있는 오류 메시지를 제공해주십시오. –