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

时间:2023-11-26 16:19:56

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