Vue.JS 2 Tutorial #6 - Event Modifiers > JS프레임워크

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

JS프레임워크

Vue.JS 2 Tutorial #6 - Event Modifiers 정보

Vue Vue.JS 2 Tutorial #6 - Event Modifiers

본문

Event Modifiers https://vuejs.org/v2/api/#v-on

 

  • .stop - call event.stopPropagation().
  • .prevent - call event.preventDefault().
  • .capture - add event listener in capture mode.
  • .self - only trigger handler if event was dispatched from this element.
  • .{keyCode | keyAlias} - only trigger handler on certain keys.
  • .native - listen for a native event on the root element of component.
  • .once - trigger handler at most once.
  • .left - (2.2.0+) only trigger handler for left button mouse events.
  • .right - (2.2.0+) only trigger handler for right button mouse events.
  • .middle - (2.2.0+) only trigger handler for middle button mouse events.
  • .passive - (2.3.0+) attaches a DOM event with { passive: true }.

 

https://github.com/iamshaunjp/vuejs-playlist/tree/lesson-6

 

추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로