Vuejs .$v 和 $event 在 Vuejs 中表示什么? [英] Vuejs . What do $v And $event denotes in Vuejs?
问题描述
$v
和 $event
在 Vue.Js 中代表什么?我们在什么情况下使用这些.也请举例详细说明.
What do $v
and $event
denote in Vue.Js? What and in which situations do we use these. Please elaborate in detail with examples too.
推荐答案
$v
指的是 Vuelidate
用于存储验证状态的特殊对象.在此处阅读更多信息:https://github.com/vuelidate/vuelidate
$v
refers to Vuelidate
's special object used for storing validation states. Read more here: https://github.com/vuelidate/vuelidate
如果您的 HTML 代码中有 $v
,那么代码肯定会使用 Vuelidate 用于表单验证.
If you have $v
in your HTML codes, definitely, the code makes use of Vuelidate for form validations.
$event
是一个特殊的对象,用于通过 Vue.js
存储和检索事件.在此处阅读更多信息:https://vuejs.org/v2/guide/events.html
$event
is a special object used to store and retrieve events by Vue.js
. Read more here: https://vuejs.org/v2/guide/events.html
这篇关于Vuejs .$v 和 $event 在 Vuejs 中表示什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!