1. 程式人生 > >jqGrid格式化數字輸出

jqGrid格式化數字輸出

符號 ima mat decimal 金額 options form and ref

科學顯示4位小數金額,如80,100.5678
formatter: "currency",formatoptions: {thousandsSeparator:",", defaulValue:"",decimalPlaces:4}

科學顯示4位小數金額並且帶前置符號,如$80,100.5678

formatter: "currency",formatoptions: {thousandsSeparator:",", defaulValue:"",decimalPlaces:4,prefix:"$"}

科學顯示4位小數金額並且帶後置符號,如80,100.5678元

formatter: "currency",formatoptions: {thousandsSeparator:",", defaulValue:"",decimalPlaces:4,suffix:"元"}

jqGrid格式化數字輸出