본문 바로가기
JS, jQuery

자바스크립트 새로고침

by 닉네임이없어서아무거나지음 2023. 5. 11.
반응형
<button>버튼</button>

const button = document.querySelector('button');
button.addEventListener("click", () => {
  window.location.reload();
});

 

반응형