1.ng-table的例子已經(jīng)做的讓我懷疑人生了....難道我是隱藏的智障?不廢話 直接上code:先是controller里面注入NgTableParams然后html:<div ng-controller="editStoreItemController" class="pageback"> <table ng-table="editStoreItemController.tableParams" class="table table-condensed table-bordered table-striped"> <tr ng-repeat="row in $data"> <td data-title="'Name'" filter="{name: 'text'}" sortable="'name'">{{row.name}}</td> <td data-title="'Age'" filter="{age: 'number'}" sortable="'age'">{{row.age}}</td> <td data-title="'Money'" filter="{money: 'number'}" sortable="'money'">{{row.money}}</td> </tr> </table></div>然后js:結(jié)果:在瀏覽器中,只顯示這個東西,其他數(shù)據(jù)都沒有,都要撓破頭了;
angular ng-table 官方的例子我做了一早上一晚上就是做不出來....
九州編程
2018-08-10 13:10:44