当前位置 : 主页 > 网络编程 > JavaScript >

mock_data

来源:互联网 收集:自由互联 发布时间:2021-06-28
mock eval(mockData = [ //测试1 { "url": "/test", "type": "get", "content": [ { "name": "name from oschina and modified qq", "age|1-100": 1002, "color": "@color" } ] }, //测试2 { "url": "/home/list", "type": "get", "content": [ { "name":
mock
eval(mockData = [
    //测试1
    {
        "url": "/test", 
        "type": "get", 
        "content": [
            {
                "name": "name from oschina and modified qq", 
                "age|1-100": 1002, 
                "color": "@color"
            }
        ]
    }, 
    
    //测试2
    {
        "url": "/home/list", 
        "type": "get", 
        "content": [
            {
                "name": "name from oschina and modified qq", 
                "age|1-100": 1002, 
                "color": "@color"
            }
        ]
    }, 
    
    //测试3
    {
        "url": "/checkitem/efsd", 
        "type": "get", 
        "content": {
            "name": "mockcheckitem", 
            "age|1-100": 1002, 
            "color": "@color"
        }
    }


]);
网友评论