怎么计算出生日期和年龄

{
fieldLabel: '出生日期',
margin: '10 0 0 10' ,
name: 'birthday',
id:'birthday',
xtype:'datefield',
editable : false,
format:'Y-m-d',
value:"<?php echo date('Y-m-d', time()) ?>",
allowBlank: true
},
{
fieldLabel:'年龄',
xtype:'textfield',
disabled:true,
width: 200,
margin: '0 0 0 20' ,
name: 'age',
allowBlank: true,
regex:/^([2-5]\d)|60$/,
regexText:'格式不正确',
}

第1个回答  2019-05-17

出生日期怎么计算年龄呢?

相似回答