<script>
var pid="110986188309189123";
// 012345678901234567
//倒数第几就减几
console.log(pid[pid.length-2]%2!=0?"男":"女");
console.log("年龄:"+(2016-pid.slice(6,10)));//slice截取
</script>
var pid="110986188309189123";
// 012345678901234567
//倒数第几就减几
console.log(pid[pid.length-2]%2!=0?"男":"女");
console.log("年龄:"+(2016-pid.slice(6,10)));//slice截取
</script>