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>
    

      

  • 相关阅读:
    python装饰器的简单理解
    自动化测试接口大纲
    web测试方法小结----以便于测试用例
    git 路上的拦路虎 了解一下
    python+selenium +unittest生成HTML测试报告
    Ext.js 初识
    Ajax
    JIRA使用
    win10系统注册表基础知识
    Markdown 模式下 代码的折叠与展开
  • 原文地址:https://www.cnblogs.com/YYkun/p/6245662.html
Copyright © 2011-2022 走看看