【发布时间】:2016-10-20 06:53:17
【问题描述】:
我正在使用angularjs 在C# 中创建一个Web 应用程序我的应用程序中有多个记录我想更新thode 记录,我创建了Web 服务和更新所需的js 文件我只是想知道我需要如何在文本框和下拉列表中打印上一个值
<input type="text" ng-model="uvenuename" ng-init="uvenuename='{{updateparam.VenueName}}'" value="{{updateparam.VenueName}}" style="margin-left: 5%;" placeholder="Venue Name" text="" height="30" />
<input type="text" ng-model="uvenueadd" ng-init="uvenueadd='{{updateparam.Venueadd}}'" value="{{updateparam.Venueadd}}" style="margin-left: 5%;" placeholder="Venue Address" text="" height="30" />
我做了类似的事情,但如果我想更改单个文本框 (let see),我只更改了场地名称并更新记录,场地地址显示为 {{updateparam.Venueadd}},而我的下拉列表显示空格
<select ng-model="ulocation">
<option ng-repeat="k in blocation" value="{{k.jlocation}}">
{{k.jlocation}}
</option>
</select>
这是我的下拉菜单,如何克服这些流量?
【问题讨论】:
标签: javascript c# angularjs