ES6 new feature development WeChat applet (8)

Source: Internet
Author: User
Tags collator intl
ES6 has added many support for internationalization, such as time format, currency format, and digital format. Internationalization & amp; Localization (Internationalization and Localization) refers to the language for modifying software to adapt to the target market... ES6 has added many support for internationalization, such as time format, currency format, and digital format.

Internationalization & Localization (Internationalization and Localization) refers to modifying software to adapt to the language, regional differences, and technical needs of the target market.

Internationalization refers to the process of decoupling software from specific languages and regions during software design. When the software is transplanted to different languages and regions, the software itself does not need to be changed or corrected in internal engineering. Localization refers to the process of adding information related to specific region settings and translating files when porting software.

The Intl object is a namespace of ECMAScript's international API. It provides precise string comparison, numeric formatting, date and time formatting. The constructor of Collator, NumberFormat, and DateTimeFormat objects is the properties of Intl objects.

Intl. Collator (): Language-sensitive string comparison function object, constructor of collators

Intl. DateTimeFormat (): Language-sensitive date and time formatting function object constructor

Intl. NumberFormat (): Language-sensitive numeric formatting function constructor of the object

Collation)

You can sort string sets by region or Unicode.

The above is a detailed description of ES6's new feature development applet (8). For more information, see other related articles in the first PHP community!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.