[JavaScript] 現在幾歲年齡算法
const todayDate = getTodayDate () ; function getTodayDate () { const fullDate = new Date () ; const yyyy = fullDate . getFullYear () ; const MM = fullDate . getMonth () + 1 >= 10 ? fullDate . getMonth () + 1 : ' 0 ' + ( fullDate . getMonth () + 1 ) ; const dd = fullDate . getDate () < 10 ? ' 0 ' + fullDate . getDate () : fullDate . getDate ...