源代码:
<% var d=new Date() var h=d.getHours() Response.Write("
") Response.Write(d) Response.Write("
") if (h<12) { Response.Write("Good Morning!") } else { Response.Write("Good day!") } %>
运行结果:
<% var d=new Date() var h=d.getHours() Response.Write("
") Response.Write(d) Response.Write("
") if (h<12) { Response.Write("Good Morning!") } else { Response.Write("Good day!") } %>