var now = new Date();
var hour = now.getHours();
var txt = '你好';
if(hour < 6){ txt = "凌晨好"}
else if (hour < 9){txt = "早上好"}
else if (hour < 12){txt = "上午好"}
else if (hour < 14){txt = "中午好"}
else if (hour < 17){txt = "下午好"}
else if (hour < 19){txt = "傍晚好"}
else if (hour < 22){txt = "晚上好"}
else {txt = "深夜了,早些休息"}