在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML5  HTML/ angularjs 表格拖動排列 不保存

angularjs 表格拖動排列 不保存

<!DOCTYPE html>
<html lang="en" ng-app="myApp">
<head>
  <meta charset="UTF-8">
  <title>ng-repeat</title>

 <script type="text/javascript" src="angular-1.3.0.js"></script>
  <!--<script src="https://cdn.bootcss.com/angular.js/1.3.0/angular.js"></script>-->
<script>
  var m1 = angular.module('myApp', []);

  m1.controller('fnA', ['$scope', function($scope) {
    $scope.dataList = [
        {
            'name':'john',
            'age':'22'
        },
        {
            'name':'vtime',
            'age':'23'
        },
        {
            'name':'ggggg',
            'age':'66'
        }
    ];
  }]);
</head>
<body>
<div ng-controller="fnA">
  <table  ng-repeat="data in dataList">
    <tr >
          <td>{{data.name}}</td>
          <td>{{data.age}}</td>
    </tr>
  </table>

</div>
</body>
</html>

遍歷table該怎么寫

回答
編輯回答
懷中人

你說的拖動指的是什么?

2017年7月16日 08:16
編輯回答
笑忘初

感覺遍歷tr好弄點 但是項目里的數(shù)據(jù)要求遍歷table ....

2017年11月3日 16:25