前者只能用在名词、系动词之后,作表语.后者只能用在名词和人名前,作定语.
He is a boy at the age of 7.
He is a boy of 7 years old.
He is a 7 year-old boy.