• Image placeholder
  • 홈 페이지
  • 블로그 센터
  • 범주
Image placeholder

location.href

[Vue.js] $router.push()와 location.href의 차이

router.js에 원하는 경로와 컴포넌트를 설정해준뒤 $router.push(경로)를 수행하면 해당 경로로 이동시켜주는 개념인데, 나는 이게 location.href와 유사하다고 느꼈다. 최근까지 나는 jsp에 javascript로 화면을 개발하며 화면 이동이 필요할 때는 location.href=”이동을 원하는 경로"의 방법으로 새로운 화면으로 이동해왔기 때문이다. 유저가 보기에는 둘 다...

vuerouterlocation.hreflocation.href

© 2022 intrepidgeeks.com

Privacy Policy Contact US Sitemap
🍪 This website uses cookies to ensure you get the best experience on our website. Learn more