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>
    

      

  • 相关阅读:
    Comparable VS Comparator
    Javascript中this关键字详解
    Runtime、System、Object
    JS IDE
    异常处理
    Throwable vs Exception
    8.4 Java 命名规范
    关键字、标识符、注释、变量
    Docker —— 从入门到实践
    RTC教程
  • 原文地址:https://www.cnblogs.com/YYkun/p/6245662.html
Copyright © 2011-2022 走看看