ABP进阶教程5

点这里进入ABP进阶教程目录 

更新脚本

打开展示层(即JD.CRS.Web.Mvc)的\wwwroot\view-resources\Views\Course\Index.js //用以存放Course查询相关脚本

插件支持语言配置,默认为英文,如下配置可汉化.

$(document).ready(function () {
        _$dataTable.DataTable({
            oLanguage: { //Language
                //"sUrl": "~/lib/dataTables/Language/zh-cn.json"
                "sEmptyTable": "无数据",
                "sInfo": "显示第 _START_ 至 _END_ 项记录,共 _TOTAL_ 项",
                "sInfoEmpty": "显示第 0 至 0 项记录 / 共 0 项",
                "sInfoFiltered": "(从 _MAX_ 条记录过滤)",
                "sInfoPostFix": "",
                "sThousands": ",",
                "sLengthMenu": "_MENU_ 项/页",
                "sLoadingRecords": "载入中...",
                "sProcessing": "处理中...",
                "sSearch": "过滤:",
                "sZeroRecords": "没找到匹配的记录",
                "oPaginate": {
                    "sFirst": "首页",
                    "sPrevious": "上页",
                    "sNext": "下页",
                    "sLast": "末页"
                },
                "oAria": {
                    "sSortAscending": ": 升序排序",
                    "sSortDescending": ": 降序排序"
                }
            }
        });
    });

预览效果

汉化效果如下.

 

ABP进阶教程5

全文结束