Ext.grid的输出列类型(xtype)为numbercolumn时,默认输出的小数位数为2,为了自定义输出的格式,可为其定义format属性,如:
var sub_cm = new Ext.grid.ColumnModel([
{
header: "单机用量",
xtype: "numbercolumn",
format: '0,0.0000',
align: 'right',
dataIndex: 'qtyUnit',
sortable: true,
updateEdit: false,
80
}]);