angularjs 动态控制添加 元素 (动态添加成员)

来源:互联网 发布:通过销售数据进行分析 编辑:程序博客网 时间:2024/06/16 01:33
<button type="button" style="font-size:20px;width: 30px;margin-left: 10px;" ng-click="addItem(noticename)">+</button>      </div>      <div class="peoplediv filter-list">         <div class="btn-group btn-border btn-group-sm ng-scope" ng-repeat="item in peopleList track by $index">                                          <button type="button" class="btn btn-default ng-binding"                                           style="width:130px">{{item}}</button>                                          <button type="button" class="btnclose" ng-click="removeItem(item)">                                          <span style="width: 40px;" class="">X</span>                                          </button>                                      </div>            </div>
其中 button 点击添加一条数据。
原创粉丝点击