big*_*how 6 formatting jqgrid number-formatting pager
当存在大量页面时,寻呼机中的数字格式为"11 223",但我希望它为"11,223"
查看11 026 - 11 031的11 031
应该
查看11,026 - 11,031的11,031
我搜索了JQGrid的文档,但找不到这样做的方法.
你可以设置
$.jgrid.formatter.integer.thousandsSeparator=',';
Run Code Online (Sandbox Code Playgroud)
或者在grid.locale-en.js文件(或您使用的其他语言环境文件)中修改第90行
integer : {thousandsSeparator: " ", defaultValue: '0'},
Run Code Online (Sandbox Code Playgroud)
(在您应该搜索的最小化版本中integer:{thousandsSeparator:" ")到该行
integer : {thousandsSeparator: ",", defaultValue: '0'},
Run Code Online (Sandbox Code Playgroud)
顺便说一下,你也可以设置原因$.jgrid.formatter.integer.thousandsSeparator='',那么它将不是千分隔符:而不是"11 223"你将拥有"11223"而不是"11,223".