我有一个可编辑的表格 它工作正常,但我必须隐藏可编辑行并在单击按钮时显示该行 例如。我怎样才能做到这一点?
<td contenteditable='true'>
<label class="text">
<input type="text" ng-model="medication.description" ng-change="editMedication(medication)"/>
{{medication.description}}
</td>
<td>
<label for="edit">
<input type="button" id = "edit" ng-model="medication" ng-change="editMedication(medication)" >
</label>
</td>
</tr>
</table>
最佳答案
你应该使用angular-xeditable ,使用它您将能够创建表可编辑列
,可编辑行
和可编辑表
关于javascript - 使用 angularjs 编辑表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35744386/