dataTable替换语言

 

            //替换文本语言
			$.extend( true, $.fn.dataTable.defaults, {
				bAutoWidth: false,//是否自动宽度
				language: {
						"sProcessing": "In processing...",
						"sLengthMenu": "Page _MENU_ Record",
						"sZeroRecords": "No match",
						"sInfo": "Show _START_ ~ _END_ Record,Total _TOTAL_ Record",
						"sInfoEmpty": "show 0 ~ 0 Record,Total 0 Record",
						"sInfoFiltered": "(Filtered by _MAX_ results)",
						"sInfoPostFix": "",
						"sSearch": "Search:",
						"sUrl": "",
						"sEmptyTable": "Data in the table is empty",
						"sLoadingRecords": "Loading...",
						"sInfoThousands": ",",
						"oPaginate": {
						"sFirst": "First Page",
						"sPrevious": "Previous",
						"sNext": "Next",
						"sLast": "Last Page"
					},
					"oAria": {
						"sSortAscending": ": Sort this column in ascending order",
						"sSortDescending": ": Sort this column in descending order"
					}
				}
			} );

 

发布了30 篇原创文章 · 获赞 6 · 访问量 2万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 编程工作室 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览