잡다한
[jQuery] on 이벤트 (touchstart, touchend)
우니010
2021. 3. 16. 16:23
반응형
touchstart
$("#box").on('touchstart', function(e) {
console.log("touchstart");
});
터치 시작 할때 이벤트
touchend
$("#box").on('touchend', function(e) {
console.log("touchend");
});
터치 끝날 때 이벤트
bind 와 on 이벤트의 차이는 없지만
on을 권장한다고 한다.
반응형