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

在后端添加@JsonFormat前端

@JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
在这里插public class CdEqInfoVO {
    /**
     * 设备id
     */
    private Long mpntId;
    /**
     * 设备名称
     */
    private String mpntName;

    /**
     *  时间:更改格式
     */
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date photovolaticTime;入代码片


前端js 更改前端样式:
后端

注:使用classname必定要加下标code

document.getElementsByClassName("contiainer_table_none")[0].style.display='none';
 document.getElementById("historyZhInfo").style.display='block';
相关文章
相关标签/搜索