• RAP的使用方法


    一:设置随机数

    二:有多少条数据就写几多

    {
        "Data": [
            {
                "month": [
                    "1月",
                    "2月",
                    "3月",
                    "4月",
                    "5月",
                    "6月",
                    "7月",
                    "8月",
                    "9月",
                    "10月 ",
                    "11月 ",
                    "12月 "
                ],
                "type": [
                    {
                        "value": 5.2411
                    },
                    {
                        "value": 2.4115
                    },
                    {
                        "value": 6.7911
                    },
                    {
                        "value": 8.8065
                    },
                    {
                        "value": 5.7217
                    },
                    {
                        "value": 5.3058
                    },
                    {
                        "value": 3.9398
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 0
                    },
                    {
                        "value": 0.8595
                    },
                    {
                        "value": 2.3129
                    }
                ]
            }
        ],
        "ErrorCode": 1,
        "ErrorMessage": "数据获取失败",
        "Message": "数据获取成功",
        "Status": true
    }

    如果不写这个数据的话,那么就只有一条数据

    {
        "Data": [
            {
                "month": [
                    "1月",
                    "2月",
                    "3月",
                    "4月",
                    "5月",
                    "6月",
                    "7月",
                    "8月",
                    "9月",
                    "10月 ",
                    "11月 ",
                    "12月 "
                ],
                "type": [
                    {
                        "value": 5.2411
                    }
                ]
            }
        ],
        "ErrorCode": 1,
        "ErrorMessage": "数据获取失败",
        "Message": "数据获取成功",
        "Status": true
    }

    三:导入的json数据

    {
        "Data": [
            {
                "value": 7711,
                "title": "CBC"
            },
            {
                "value": 3182,
                "title": "CEC"
            },
            {
                "value": 14003,
                "title": "CIC"
            },
            {
                "value": 13384,
                "title": "JOU"
            },
            {
                "value": 6928,
                "title": "MTP"
            },
            {
                "value": 7140,
                "title": "MUL"
            },
            {
                "value": 44,
                "title": "RCE"
            },
            {
                "value": 14739,
                "title": "RDL"
            },
            {
                "value": 14123,
                "title": "RDU"
            },
            {
                "value": 672,
                "title": "RES"
            },
            {
                "value": 8652,
                "title": "RHL"
            },
            {
                "value": 3363,
                "title": "RPP"
            },
            {
                "value": 9944,
                "title": "RSH"
            },
            {
                "value": 5556,
                "title": "RTU"
            },
            {
                "value": 6980,
                "title": "RWS"
            }
        ],
        "ErrorCode": 1,
        "ErrorMessage": "数据获取失败",
        "Message": "数据获取成功",
        "Status": true
    }

  • 相关阅读:
    发送短信/邮件/打电话 code(转)
    如何学习算法
    堆和栈的区别
    2010 baidu笔试
    关于TableView中图片的延时加载(转)
    sqlite + UITableView 实现iPhone大数据浏览
    2010 Google中国笔试试题
    海量数据处理方法总结(转)
    IPhone WebApp 设计开发工具与资源(转)
    DynamicDataSet
  • 原文地址:https://www.cnblogs.com/dreamhouse/p/9479968.html
Copyright © 2020-2023  润新知