首页 > Web开发 > 详细

angularJs select

时间:2017-01-03 18:47:05      阅读:246      评论:0      收藏:0      [点我收藏+]
方式一:
<label>性别:</label>   
<select id="sex" class="PatientInfo-text" ng-model="patient.Sex" ng-options="x.Name for x in SexTypes">
</select>

方式二
   <label>年龄:</label>
                <input type="number" style="width: 7.6%" ng-model="applyForm.Age" min="0" step="1" required />
                <select ng-model="applyForm.AgeUnit" style="width: 3.3%">
                    <option value="岁" selected="selected">岁</option>
                    <option value="月">月</option>
                    <option value="周">周</option>
                    <option value="天">天</option>
                    <option value="时">时</option>
                </select>

方式三:
 <label for="report.LibType">库类别:</label>
                <select ng-model="LibType" class="Apply-text" ng-options="LibType.Name for LibType in LibTypes" ng-change="libTypeChanged(LibType);">
                    <option value="">-- 请选择 --</option>
                </select>

方式四:
 <label>民族:</label>
                <select class="PatientInfo-text" ng-model="patient.Nationality.InstanceId">
                    <option ng-repeat="NationType in NationTypes" value="{{NationType.InstanceId}}">{{NationType.Name}}</option>
                </select>

==》
   <label>病人来源:</label>
                <select ng-model="applyForm.PatientSource.InstanceId" class="PatientInfo-text">
                    <option ng-repeat="PatientSource in PatientSources" value="{{PatientSource.InstanceId}}">{{PatientSource.Name}}</option>
                </select>

==》
<label>费别:</label>
                <select ng-model="applyForm.ChargeTypeId" class="Select-text">
                    <option ng-repeat="ChargeType in ChargeTypes" value="{{ChargeType.InstanceId}}">{{ChargeType.Name}}</option>
                </select>

  

angularJs select

原文:http://www.cnblogs.com/YYkun/p/6245662.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!