2017-05-05 2 views
0

jqGrid 바닥 글 행에 일부 합계를 설정합니다. 모두는 크롬 & Firefox에 있지만 IE11은 저에게 문제를 일으 킵니다.IE11의 통화 형식

코드가 그리드의 loadComplete 이벤트에서 호출되었지만 (!?) 이건 부적절한 것 같습니다. 나는 전화가 다음 값이 (서식) 표시

function currencyFormat (value) 
    {     
     var formatter = new Intl.NumberFormat('en-GB', { 
     //style: 'currency', 
     style: 'decimal', 
     //currency: 'GBP', 
     minimumFractionDigits: 2, 
     }); 

     return formatter.format(value); 
    }; 

내가 크롬 & 파이어 폭스를 테스트 한 아무 문제가 없다을 currencyFormat을 제거하면 나는 다음 줄

//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)); 

에 격리했다. IE11이 문제입니다. 아무도 그 이유를 말할 수 있습니까? 감사.

답변