是否有格式化程序选项在JQ Grid
中显示Kb或Mb文件大小?
jQuery().ready(function ($) {
var colModel = [
{ name: 'Size', index: 'Size', sortable: false, search: false, align: 'left', width: 100, formatoptions: {suffix:'kb'} },
];
这似乎不起作用? 请帮帮....
答案 0 :(得分:1)
试试这个
formatter:'currency',formatoptions:{ decimalSeparator:".", thousandsSeparator: "", decimalPlaces: 0, prefix: "", suffix:" kb"}
我在小数点上遇到了一些问题,这就是我使用decimalSeparator,thousandsSeparator
和decimalPlaces
的原因,根据您的要求使用