-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] vue常用的修饰符有哪些?列举并说明 #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
.trim .number .stop .prevent |
.once |
.trim .once .lazy .stop .native .prevent .number |
在Vue中,修饰符(Modifiers)用于在指令的后面以点号(.)的形式添加,用于改变指令的行为。以下是Vue中常用的修饰符及其说明: .prevent: 阻止默认事件的触发。 .stop: 阻止事件冒泡,不再向上级元素传递。 使用事件捕获模式,即从父元素开始往子元素触发事件。 只当事件在绑定事件的元素本身触发时才触发事件处理函数。 只触发一次事件处理函数,之后自动解绑。 提示浏览器此事件监听器永远不会调用 preventDefault()。 监听组件根元素的原生事件,而不是组件内部触发的事件。 双向绑定。用于父子组件之间的数据传递。 |
[vue] vue常用的修饰符有哪些?列举并说明
The text was updated successfully, but these errors were encountered: