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