根据当前时间在jsp页面上显示上午或下午 只要在jsp页面中假如如下代码就行 <% if(new Date() getHours()>=0 && new Date() getHours()<=12){ 看 JavaScript 2022-04-08 182 点赞 2 评论 275 浏览