history.pushState

페이지를 ajax 로 부분 새로고침을 하는 경우 뒤로가기가 해당움직임에 적용되지 않는다. 때문에 자연스러운 사용자 경험을 위해선 history 에 움직임을 쌓아 이전 뷰로 뒤로가기가 가능하게 해야된다.

이 경우 pushState 와 replaceState 로 페이지 히스토리를 쌓게 되는데, pushState 는 현재 자신의 상태를 기억하는 것이다. 과거 페이지를 기억하는게 아니라.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
모든 댓글 보기
0
생각을 나눠주시면 감사해요!x
()
x
Please enter Google Username or ID to start!
Example: clip360net or 116819034451508671546
Title
Caption
File name
Size
Alignment
Link to
  Open new windows
  Rel nofollow