mvc-config.json 2.21 KB
{
    "defaultActionName": "index",
    "layout": {
        "default-layout": "new_layout"
    },
    "renderOptions": {
        "login": {
            "data": [
                {
                    "one": "one1",
                    "two": "two",
                    "three": "three"
                }, {
                    "one": "one2",
                    "two": "two",
                    "three": "three"
                }
            ],
            "css": "这里头是mustache模板除模板参数外其他的参数"
        },
        "default":{"tvs":[{"img":"http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424","link":"http://www.baidu.com"},
                            {"img":"http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424","link":"http://www.baidu.com"},
                            {"img":"http://img02.yohoboys.com/contentimg/2015/02/12/09/02cdeedce63d09965f48244ef7e3961448.jpg?imageMogr2/thumbnail/738x424","link":"http://www.baidu.com"}],
                    "ys":{"one":"lifestyle"}
                  }
    },
    "ajax": {
        "todolist/getlist": ["这是我的list", "这是我的list", "这是我的list", "这是我的list", "这是我的list", "这是我的list", "这是我的list", "这是我的list"],
        "todolist/getlist2": {
            "ajaxRepeat": 3,
            "ajaxData": {
                "one": "one",
                "two": "two",
                "three": "three"
            }
        },
        "haha3": [1, 2, 3, 4, 5, 6, 7, 8, 9, 0],
        "hah4": [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 32, 1],
        "haha/haha": [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 32, 1],
        "haha/haha2": [1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 32, 1],
        "login/issuccess": true,
        "login/issuccess2": false,
        "login/issuccess3": false,
        "login/issuccess4": {
            "ajaxRepeat": 10,
            "ajaxData": {
                "one": "one,^_^",
                "two": "two^_^",
                "three": "three^_^"
            }
        },
        "test/test/test3": {
            "one": 1,
            "two": 2,
            "three": 3
        }
    }
}