从服务器端加载引导数据表中的数据



嗨,我是bootstrap和angularJS的新手。我试图使用PHP从服务器端mysql加载数据以进行引导,但这需要花费大量时间,因为有3000条记录,这些记录首先加载,然后在引导数据表中显示,这需要5分钟以上的时间。但我需要做得很快。我也在使用AngularJS。在谷歌搜索中,我发现我们可以通过在服务器端处理数据来做到这一点。因此我需要知道如何在Bootstrap数据表中从服务器端填充数据

请帮帮我!!:)

示例JSON数据:(我从PHP文件中获得)

get.php?json=all&query=选择*自student极限0.3

[{"id":"1","fname":"AARYA","mname":null,"lname":"M","性别":"男性","dob":"2004-10-04","入院日期":"2014-03-28 06:38:49","学术年度":"2013-2014","许可号":"-","类":"4","section":"D","rollno":"1","applicationnumber":null,"手机":"9655093949","transportype":"学校交通","transportm":null,"拾取点":"ECHAMPATTI","照片":"上传\/student\/1.jpg","parentid":"1","pickup":"125","discounted":"1","tf_discountid":"0","bs_discountid":"0"},{"id":"2","fname":"ABHI","mname":null,"lname":"S","性别":"男性","dob":"2004-06-13","入院日期":"2014-03-28 03:17:35","学术年度":"2013-2014","许可号":"-","类":"4","section":"D","rollno":"2","applicationnumber":null,"移动":"-","transportype":"自己的运输","transportm":null,"拾取点":"NA","照片":"上传\/student\/2.jpg","parentid":"2","pickup":空,"discounted":null,"tf_discountid":"0","bs_discountid":"0"},{"id":"3","fname":"AHRAF","mname":null,"lname":"A","性别":"男性","dob":"2004-10-25","入院日期":"2014-03-28 03:17:35","学术年度":"2013-2014","许可号":"-","类":"4","section":"D","rollno":"3","applicationnumber":null,"手机":"9025509301","transportype":"学校交通","transportm":null,"拾取点":"RAYAKOTTAI","照片":"上传\/student\/3.jpg","parentid":"3","pickup":"1","discounted":null,"tf_discountid":"0","bs_discountid":"0"}]

我会在表本身中对来自服务器的数据使用ng repeat。大致如下:

<table class="table table-striped">
    <tr ng-repeat="data in serverData">
        <td>{{data.fname}}</td>
        <td>{{data.lname}}</td>
    </tr>
</table>

最新更新