zoukankan      html  css  js  c++  java
  • angularJs下拉框

    1 只是一个下拉框

    <!-- <select ng-model="areaType" ng-disabled="isDisable" class="form-control" ng-options="c.code as c.code for c in codes"> -->
    <!-- <option value="">---请选择---</option> -->
    <!-- </select> -->

    2 可输入下拉框,并且支持模糊查询

    <ui-select ng-model="areaType.selected" theme="bootstrap" ng-change="change()" search-enabled="searchEnabled" style=" 150px;" title="Choose a areaType">
    <ui-select-match placeholder="Please select">{{$select.selected.area}}</ui-select-match>
    <ui-select-choices repeat="areaType in areaTypes | propsFilter: {id: $select.search, area: $select.search}">
    <div ng-bind-html=" areaType.area | highlight: $select.search "></div>
    <!-- <small> -->
    <!-- {{areaType.area +'-'+areaType.id}} -->
    <!-- </small> -->
    </ui-select-choices>
    </ui-select>

  • 相关阅读:
    页面性能
    js运行机制
    渲染机制
    通信类
    js面向对象 继承
    原型
    [HEOI2016/TJOI2016]求和
    「NOIP2018 保卫王国」
    「LGP4719【模板】动态dp」
    多项式进阶操作
  • 原文地址:https://www.cnblogs.com/songyunxinQQ529616136/p/6369753.html
Copyright © 2011-2022 走看看