标签:
/*
* bootstrap-table - v1.5.0 - 2014-12-12
* https://github.com/wenzhixin/bootstrap-table
* Copyright (c) 2014 zhixin wen
* Licensed MIT License
*/
<table id="tblCountry" >
<thead>
<tr>
<th data-field="Code">Code</th>
<th data-field="Name">Country</th>
</tr>
</thead>
</table>
<script type="text/javascript">
$.get("http://localhost:5920/GTA/Country", function (data, status) {
$(‘#tblCountry‘).bootstrapTable({
data: data.Country
});
});
</script>
GTA项目 三, 使用 bootstrap table展示界面,使得data和UI分离
标签:
原文地址:http://www.cnblogs.com/zitjubiz/p/4269038.html