语言。正在加载记录
自:DataTables 1.10
加载信息显示字符串 - 显示在使用 Ajax 加载数据时。
说明
在使用 Ajax 数据源且在 DataTables 收集数据进行第一次绘制时,会显示此消息(位于表格的空行中),以向最终用户指示正在加载数据。请注意,在通过服务器端处理加载数据时不使用此参数,仅在通过客户端处理加载 Ajax sourced 数据时使用此参数。
类型
此选项可以给定为以下类型
默认值
- 值:
Loading...
示例
设置加载信息文本
123456new
DataTable(
'#myTable'
, {
ajax:
'json.txt'
,
language: {
loadingRecords:
'Please wait - loading...'
}
});
相关
以下选项与之直接相关,在您的应用程序开发时也可能派上用场。
Post new comment
Contributions in the form of tips, code snippets and suggestions for the above material are very welcome. To post a comment, please use the form below. Text is formatted by Markdown.
To post comments, please sign in to your DataTables account, or register:
Any questions posted here will be deleted without being published.
Please post questions in the Forums. Comments are moderated.