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>
  • 相关阅读:
    shell循环
    shell选择语句
    shell运算符
    shell变量
    前端基础复习
    flask 模板
    flask 会话技术
    flask 项目结构
    Tornado 框架介绍
    flask-models 操作
  • 原文地址:https://www.cnblogs.com/yangyang03/p/6634546.html
Copyright © 2011-2022 走看看