我想知道如何将返回此函数的值传递给隐藏的输入我尝试使用指令 v-input 但不起作用,我如何找到解决方案?这是计算函数:
computed:{
currentDate: function (){
this.date = moment().format("D-MM-YYYY");
return this.date;
}
Run Code Online (Sandbox Code Playgroud)
这就是观点:
<input type="hidden" name="customfield" class="form-control" v-model="fillProfile.customfield">
Run Code Online (Sandbox Code Playgroud)