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