小编Fer*_*ong的帖子

如何填充用 vuejs 2 隐藏的输入?

我想知道如何将返回此函数的值传递给隐藏的输入我尝试使用指令 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)

function populate vue.js vuejs2

0
推荐指数
1
解决办法
2万
查看次数

标签 统计

function ×1

populate ×1

vue.js ×1

vuejs2 ×1