javascript根据生日计算年龄

var birthday=new Date("1989-06-25".replace(/-/g, "\/")); 
var d=new Date(); 
var age = d.getFullYear()-birthday.getFullYear()-((d.getMonth()
http://hi.baidu.com/liuspring/item/bd1509cf2d1cff16b77a2402

你可能感兴趣的:(javascript根据生日计算年龄)