function Age(status, index) {
var aDate = new Date();
var thisYear = aDate.getFullYear();
var bDate = new Date(status);
var brith = bDate.getFullYear();
var age = (thisYear - brith);
return age;
}
转载于:https://www.cnblogs.com/szxlh/p/4974287.html