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>
  • 相关阅读:
    代码模板
    DNSget Ip
    WC约束示使用
    下雨了
    Xml文件保存值不能及时更新
    代码不是艺术,而是达到目的的一种手段
    网站TCP链接暴增
    吐个槽吧
    正则表达式使用小注意
    Sereja and Two Sequences CodeForces
  • 原文地址:https://www.cnblogs.com/yangyang03/p/6634546.html
Copyright © 2011-2022 走看看