当存在大量页面时,Pager中的数字格式为“ 11 223”,但我希望它为“ 11,223”

查看11 026-11 031 of 11 031

应该

查看11,026-11,031 of 11,031

我在文档中搜索了jqgrid,但找不到这样做的方法。

有帮助吗?

解决方案

您可以设置

$.jgrid.formatter.integer.thousandsSeparator=',';

或在grid.locale-en.js文件(或您使用的另一个语言环境文件)中进行修改90行

integer : {thousandsSeparator: " ", defaultValue: '0'},

(在最小化版本中,您应该搜索 integer:{thousandsSeparator:" "

integer : {thousandsSeparator: ",", defaultValue: '0'},

顺便说一句,您也可以设置 $.jgrid.formatter.integer.thousandsSeparator='', ,那么它不会是千分机:而不是“ 11 223”,您将拥有“ 11223”,而不是“ 11,223”。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top