Home >Web Front-end >Vue.js >Commonly used modifiers in vue
Commonly used modifiers in Vue.js
Modifiers are special suffixes used to modify the behavior of instructions in Vue.js. They can be added to the end of a directive to specify additional functionality.
Commonly used modifiers:
1. .lazy
v-model.lazy
、v-if.lazy
2 . .memo
v-bind:class.memo
##3. .number
Trim spaces in input values.
Default behavior of blocking events.
##6. .stopPrevent events from bubbling.
##7. .once
Execute the command only once.
Usage:
Usage:
Usage:
v-on:click.capture
The event handler is triggered when the element enters the DOM. Usage: v-transition:enter
The event handler is triggered when the element leaves the DOM.
v-transition:leave
The above is the detailed content of Commonly used modifiers in vue. For more information, please follow other related articles on the PHP Chinese website!