banner
Aug 15, 2022
105 Views

toLocaleString không hoạt động với android

Written by
banner

In December 2012, ECMA International published the first edition of Standard ECMA-402, better known as the ECMAScript Internationalization API. This specification provides the framework to bring long overdue localization methods to ECMAScript implementations.

All modern browsers, except safari, have implemented this API. Intl.js fills the void of availability for this API. It will provide the framework as described by the specification, so that developers can take advantage of the native API in environments that support it, or Intl.js for legacy or unsupported environments.

npm i intl

Ở index.js hoặc App.js thêm 2 dòng sau

import 'intl';
import 'intl/locale-data/jsonp/en';
Article Tags:
·
Article Categories:
dev
banner

Leave a Reply

Your email address will not be published. Required fields are marked *