GTA项目 三, 使用 bootstrap table展示界面,使得data和UI分离

/*
* 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>

  

上一篇:Episode 388: Testing vs Monitoring


下一篇:Android应用性能优化系列视图篇——隐藏在资源图片中的内存杀手