0
我在jqGrid Footer行中設置了一些總數。一切都很順利Chrome & Firefox但IE11正在引起我的一個問題。IE11中的貨幣格式
該代碼在網格的loadComplete事件中調用,但我認爲(!?)這是無關緊要的。我把它隔離到以下行
//works
$newFooterRow.find(">td[aria-describedby=" + this.id + "_accountName]")
.text("Grand Total:");
//No value (and stops the grid rendering properly (stops the toolbar appearing)
$newFooterRow.find(">td[aria-describedby=" + this.id + "_orderValue]")
.text(currencyFormat(totalorderValue));
$newFooterRow.find(">td[aria-describedby=" + this.id + "_expenditure]")
.text(currencyFormat(totalExpenditureAmount));
如果我刪除調用currencyFormat則值顯示(格式化)
function currencyFormat (value)
{
var formatter = new Intl.NumberFormat('en-GB', {
//style: 'currency',
style: 'decimal',
//currency: 'GBP',
minimumFractionDigits: 2,
});
return formatter.format(value);
};
我測試過的Chrome &火狐並沒有什麼問題。 IE11是一個問題。誰能告訴我爲什麼?謝謝。