文档中是直接拿json
<table data-toggle="table" data-url="data1.json">
<thead>
<tr>
<th data-field="id">Item ID</th>
<th data-field="name">Item Name</th>
<th data-field="price">Item Price</th>
</tr>
</thead>
</table>
但是我的json格式如下
{ "code": "0",
"data": {"messages":[{"id":1,"name":"Mark","price":"10"},....]}
}
请问该如何修改?
html:
js: