芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/@formatjs/intl-numberformat/lib/polyfill.js
import { NumberFormat } from './src/core'; import { toLocaleString as _toLocaleString } from './src/to_locale_string'; import { defineProperty } from '@formatjs/ecma402-abstract'; import { shouldPolyfill } from './should-polyfill'; if (shouldPolyfill()) { defineProperty(Intl, 'NumberFormat', { value: NumberFormat }); defineProperty(Number.prototype, 'toLocaleString', { value: function toLocaleString(locales, options) { return _toLocaleString(this, locales, options); }, }); }