강의

멘토링

로드맵

Inflearn Community Q&A

eoehtkak1785's profile image
eoehtkak1785

asked

The Complete Guide to Vue.js - Practical Concepts Learned Through Practice and Refactoring

Showing routing components using router-view

URL에 왜 #이 먼저 들어가 있나요?

Resolved

Written on

·

374

5

안녕하세요. 예제를 따라하다 문득 궁금한게 생겨 연락 드립니다.

ip:port/#/news
처럼 왜 #을 사용하나요?

javascriptvuejs

Answer 1

9

captain님의 프로필 이미지
captain
Instructor

안녕하세요 조종균님,

라우팅 라이브러리를 사용할 때 URL에 일반적으로 #가 들어간 이유는 브라우저 히스토리 조작을 위해서입니다. 쉽게 얘기해서 URL에 입력된 값을 자바스크립트로 구분하기 위한 것이라고 이해하시면 좋을 것 같습니다 :)

eoehtkak1785's profile image
eoehtkak1785

asked

Ask a question