【发布时间】:2018-05-07 06:06:09
【问题描述】:
new Vue({
el: '#app',
data: () => ({
Frequired: true,
Lrequired: false
}),
methods: {
handleChanges () {
this.Frequired = !this.Frequired;
this.Lrequired = !this.Lrequired;
}
}
})
我如何使用相同的功能 botton /checkout 但分别使用它们?
在上面的示例中,我希望检查必填 First Name 字段并检查 Last Name 字段,现在该函数链接到这两个复选框,很想知道一种干净的方式来分别点击它们。
【问题讨论】:
标签: javascript function vue.js vuejs2 vuetify.js