타쿠꺼

모바일 뒤로가기 버튼 본문

ETC.

모바일 뒤로가기 버튼

kimtaku 2016. 7. 30. 23:05

You need to listen to navigation event and state.direction.

$(window).on("navigate", function (event, data) {
  var direction = data.state.direction;
  if (direction == 'back') {
    // do something
  }
  if (direction == 'forward') {
    // do something else
  }
});


'ETC.' 카테고리의 다른 글

allow_url_fopen = 0일 때 Simple HTML DOM Parser 사용하기  (0) 2016.07.31
php로 XML 생성  (0) 2016.07.30
Comments