zoukankan      html  css  js  c++  java
  • angularJs select

    方式一:
    <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=" 7.6%" ng-model="applyForm.Age" min="0" step="1" required />
                    <select ng-model="applyForm.AgeUnit" style=" 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>
    

      

  • 相关阅读:
    和程序员有关的对联
    《kali linux 渗透测试初级教程》免费下载
    PPT嵌入字体的方法
    修改nw.js的exe文件使其请求管理员权限
    nw.js FrameLess Window下的窗口拖拽与窗口大小控制
    nw.js如何处理拖放操作
    nw.js 软件推荐:AxeSlide斧子演示:PPT的另一种可能(转)
    c#使用word、excel、pdf ——转
    ASP.NET MVC
    http 报文
  • 原文地址:https://www.cnblogs.com/YYkun/p/6245662.html
Copyright © 2011-2022 走看看