Is there a way to get the decimal and thousands separator in ECMAscript Internationalization API?
问题 I'm trying to use the new Javascript internationalization API, and would like to know if there is a way to get the decimal and thousands (grouping) separator for a Intl.NumberFormat instance? There is a resolvedOptions method on the object, but that does not provide the symbols. In case anybody's wondering, then for en-US, these would be a comma , and period . , such as in 1,000.00 . 回答1: I'm afraid ECMA-402 standard does not define the API that let you access separators. There is also