I have tried but failed in researching on Google and here to get a basic, but good understanding about the meaning of Client and Server side jQuery dataTable processing. I know the Client is usually the web browser and it interacts with the user, and the server is the http server, but not more than that. If someone can please help in giving a brief description on both aspects of data processing? If it is with examples, it would be awesome. And if not, still great.
我曾经尝试但在研究谷歌方面失败了,在这里获得了关于客户端和服务器端jQuery dataTable处理的基本但很好的理解。我知道客户端通常是Web浏览器,它与用户交互,服务器是http服务器,但不多于此。如果有人可以帮助简要介绍数据处理的两个方面吗?如果有例子,那就太棒了。如果没有,仍然很棒。
<table id="datatable" class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.Budget)
........
</tr>
</thead>
<tbody>
@foreach (var item in Model)
...........
<script type="text/javascript">
$(document).ready(function () {
$('#datatable').dataTable();
});
</script>
So, is the script code above all I need to do for Client side processing?
那么,脚本代码首先是我需要为客户端处理做些什么吗?
1 个解决方案
#1
2
Please read official documentation regarding processing modes.
请阅读有关处理模式的官方文档。
-
Client-side processing - the full data set is loaded up-front and data processing (ordering, filtering, pagination) is done in the browser.
客户端处理 - 完整数据集预先加载,数据处理(排序,过滤,分页)在浏览器中完成。
See this example of data table using client-side processing mode.
使用客户端处理模式查看此数据表示例。
-
Server-side processing - an Ajax request is made for every table redraw, with only the data required for each display returned. The data processing (ordering, filtering, pagination) is performed on the server.
服务器端处理 - 为每个表重绘创建一个Ajax请求,只返回每个显示所需的数据。在服务器上执行数据处理(排序,过滤,分页)。
See this example of data table using server-side processing mode.
使用服务器端处理模式查看此数据表示例。
#1
2
Please read official documentation regarding processing modes.
请阅读有关处理模式的官方文档。
-
Client-side processing - the full data set is loaded up-front and data processing (ordering, filtering, pagination) is done in the browser.
客户端处理 - 完整数据集预先加载,数据处理(排序,过滤,分页)在浏览器中完成。
See this example of data table using client-side processing mode.
使用客户端处理模式查看此数据表示例。
-
Server-side processing - an Ajax request is made for every table redraw, with only the data required for each display returned. The data processing (ordering, filtering, pagination) is performed on the server.
服务器端处理 - 为每个表重绘创建一个Ajax请求,只返回每个显示所需的数据。在服务器上执行数据处理(排序,过滤,分页)。
See this example of data table using server-side processing mode.
使用服务器端处理模式查看此数据表示例。