js读取json数组到页面,急求,后台返回如下:

{
    "code": 1,
    "message": "成功!",
    "object": [
        {
            "billNum": 20170102,
            "applyDate": 1494145272257,
            "loanAmount": 100,
            "assessAmount": 4223,
            "rate": 422223,
            "carName": "奥迪",
            "applyPersonName": "12        ",
            "isChecked": 1,
            "checkTime": null,
            "checkEmpID": null,
            "checkEmpName": null,
            "checkStatusString": null,
            "bankName": null
        },
        {
            "billNum": 20170102,
            "applyDate": 1494145272257,
            "loanAmount": 100,
            "assessAmount": 4223,
            "rate": 422223,
            "carName": "本次",
            "applyPersonName": "12        ",
            "isChecked": 1,
            "checkTime": null,
            "checkEmpID": null,
            "checkEmpName": null,
            "checkStatusString": null,
            "bankName": null
        }
    ],
    "page": {
        "currentPage": 0,
        "pageRecords": 10,
        "totalPages": 1,
        "totalRecords": 4,
        "startRecord": -10,
        "nextPage": 1,
        "previousPage": 0,
        "hasNextPage": false,
        "hasPreviousPage": false
    },
    "map": {}
}


Zjyyjz
浏览 2008回答 2
2回答

习惯受伤

用jquery获取啊,有$.get,$.post,$.ajax,$.getJSON等方式获取,具体代码网上太多了,不想写。获取到之后可以用jquery tmpl插件渲染在页面上。

梵天001

还是找个人给你弄吧,一两句话说不清。你基础都没理解呢。1,ajax 通过后台接口获取数据2,前端通过模板渲染
打开App,查看更多内容
随时随地看视频慕课网APP