我们如何使用下面的附加公式将一个文本框模型绑定到另一个文本框但是这不起作用..
@Html.TextBoxFor(model => model.Records, new
{
@class = "form-control",
ng_model = Html.IdFor(m => m.MasterRecordsCharge)
})
@Html.TextBoxFor(model => model.RecordsTotal, new
{
@class = "form-control",
ng_bind = "{{parseFloat("+Html.IdFor(m => m.MasterRecordsCharge)+") + 100}}"
})
OR
<input type="text" ng-model="record">
<input type="text" ng-bind="{{parseFloat(record) + 100}}">