angularjs表格方式显示数据

<table>
  <tr ng-repeat="x in names">
    <td>{{ x.Name }}td>
    <td>{{ x.Country }}td>
  tr>
table>

<table class="table table-striped">
  <thead><tr>
    <th>Editth>
    <th>First Nameth>
    <th>Last Nameth>
  tr>thead>
  <tbody><tr ng-repeat="user in users">
    <td>
      <button class="btn" ng-click="editUser(user.id)">
      <span class="glyphicon glyphicon-pencil">span>  Edit
      button>
    td>
    <td>{{ user.fName }}td>
    <td>{{ user.lName }}td>
  tr>tbody>
table>

 

转载于:https://www.cnblogs.com/guanglin/p/5200086.html

你可能感兴趣的:(angularjs表格方式显示数据)