2017-02-15 55 views

回答

0
const date = new Date().getHours() 
date < 12 ? 'Good Morning' : date < 18 ? 'Good Afternoon' : 'Good Night'