<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="js/angular.min.js"></script>
<style>
#q tr td {
width: 150px;
text-align: center;
margin-bottom: 5px;
}
#q tr:nth-child(2n) {
background: darkgray;
}
#q tr:nth-child(odd) {
background: white;
}
span{
color: red;
}
</style>
<script>
angular.module("lizhuang", [])
.controller("democ", function($scope, $http) {
$http.get("http://result.eolinker.com/TucCTQueffdc1d1aaa3be05d8c62e9bb5d3e8b495f97cca?uri=hybrid")
.then(function(d) {
$scope.persons = d.data;
$scope. add_sex='男';
});
$scope.getAge = function(bir) {
var b = new Date(bir).getYear(); //出生的年份
var nowb = new Date().getYear(); /*现在的年份*/
return nowb - b;
}
$scope.bumen = function(dname) {
if($scope.bumencha == undefined || $scope.bumencha == "") {
return true;
}
if(dname.indexOf($scope.bumencha) > -1) {
return true;
}
return false;
}
//删除
$sco
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="js/angular.min.js"></script>
<style>
#q tr td {
width: 150px;
text-align: center;
margin-bottom: 5px;
}
#q tr:nth-child(2n) {
background: darkgray;
}
#q tr:nth-child(odd) {
background: white;
}
span{
color: red;
}
</style>
<script>
angular.module("lizhuang", [])
.controller("democ", function($scope, $http) {
$http.get("http://result.eolinker.com/TucCTQueffdc1d1aaa3be05d8c62e9bb5d3e8b495f97cca?uri=hybrid")
.then(function(d) {
$scope.persons = d.data;
$scope. add_sex='男';
});
$scope.getAge = function(bir) {
var b = new Date(bir).getYear(); //出生的年份
var nowb = new Date().getYear(); /*现在的年份*/
return nowb - b;
}
$scope.bumen = function(dname) {
if($scope.bumencha == undefined || $scope.bumencha == "") {
return true;
}
if(dname.indexOf($scope.bumencha) > -1) {
return true;
}
return false;
}
//删除
$sco