vuejs 获取数据<输入类型= "hidden"



当我尝试获取列表的数据"Id"时,脚本弄错了Id。

我需要 Id 该字段。 但我的回报是错误的

<input type="hidden" name="Id" id="Id"  v-mode="todo.Id">

我保持使用隐藏,因为我不是如何在不使用隐藏输入的情况下获取该id

</tr>
<tr  v-for="todo in todos">
<td>{{todo.filial}} Id {{todo.Id}}<input type="hidden" name="Id" id="Id"  v-mode="todo.Id"></td>

Deletar: function (event){
alert($('#Id').val());
/*$.post( "Salva.php", { textoDoFormulario: this.todosView.Id, status: "delete"  } );
$.get('t2576.php', function(resp) {
todosView.todos = resp;
}, "json");*/
},

v-model 不适用于隐藏输入。 相关问题

最新更新