zoukankan      html  css  js  c++  java
  • js将接口返回的数据序列化

    <div style={{marginLeft: '80px'}}>
                        <pre>
                            {this.state.showType == '1' && JSON.stringify(getLoginByIdCardList.response, undefined, 2)}
                            {this.state.showType == '2' && JSON.stringify(getBespeakOrderList.response, undefined, 2)}
                            {this.state.showType == '3' && JSON.stringify(getReservationList.response, undefined, 2)}
                            {this.state.showType == '4' && JSON.stringify(getUserReportList.response, undefined, 2)}
                            {this.state.showType == '5' && JSON.stringify(getabnormalList.response, undefined, 2)}
                            {this.state.showType == '6' && JSON.stringify(getRemoteReportList.response, undefined, 2)}
                        </pre>
                    </div>
  • 相关阅读:
    Nio笔记(一)
    设计模式之职责链模式
    Hibernate注解(三)
    Hibernate注解(二)
    Hibernate注解(一)
    设计模式之适配器模式
    设计模式之桥接模式
    设计模式之外观模式
    设计模式之观享元模式
    设计模式之观察者模式
  • 原文地址:https://www.cnblogs.com/yangyang03/p/6634546.html
Copyright © 2011-2022 走看看