//html
<tbody>
<tr ng-repeat="d in jsonFromNet | filter:search | filter:search2 | orderBy:sel"><td><input type="checkbox" name="ck" /></td>
<td>{{d.name}}</td>
<td>{{getAge(d.birthday)}}</td>
<td>{{d.gender}}</td>
<td>{{d.salary}}</td>
<td>{{d.birthday | date:"yy-MM-dd hh:mm:ss"}}</td>
<td>{{d.department.name}}</td>
<td><button ng-click="add()">添加</button><button ng-click="del($index)">删除</button ng-click="updata()">修改<button></button></td>
</tr>
</tbody>
// script
$scope.getAge=function(startDate){
var date=new Date();
var startDate=new Date(startDate);
var newDate=date.getTime()-startDate.getTime();
return Math.ceil(newDate/1000/60/60/24/365);
}