时间格式的处理,前端的时间显示2020-03-10T16:02:00.000+0000

 在后端添加@JsonFormat

@JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
@Data
public class ProData {
 
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date czsj;
    private String name;
}

前端js 更改前端样式:

注:使用classname一定要加下标

 document.getElementsByClassName("contiainer_table_none")[0].style.display='none';
 document.getElementById("historyZhInfo").style.display='block';
发布了46 篇原创文章 · 获赞 13 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_39038793/article/details/105144680