阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      JS Intl.NumberFormat.prototype

      The Intl.NumberFormat.prototype property represents the prototype object for the Intl.NumberFormat constructor.

      Property attributes of Intl.NumberFormat.prototype
      Writable
      Enumerable
      Configurable

      Description

      See NumberFormat for a description of Intl.NumberFormat instances.

      Intl.NumberFormat instances inherit from Intl.NumberFormat.prototype. Modifications to the prototype object are inherited by all Intl.NumberFormat instances.

      Properties

      Intl.NumberFormat.prototype.constructor

      A reference to Intl.NumberFormat.

      Methods

      Intl.NumberFormat.prototype.format()

      Getter function that formats a number according to the locale and formatting options of this NumberFormat object.

      Intl.NumberFormat.prototype.formatToParts()

      Returns an Array of objects representing the number string in parts that can be used for custom locale-aware formatting.

      Intl.NumberFormat.prototype.resolvedOptions()

      Returns a new object with properties reflecting the locale and collation options computed during initialization of the object.

      Specifications

      SpecificationStatusComment
      [ECMAScript Internationalization API 1.0 (ECMA-402)
      The definition of ‘Intl.NumberFormat.prototype’ in that specification.](https://www.ecma-international.org/ecma-402/1.0/#sec-11.2.1)StandardInitial definition.
      [ECMAScript Internationalization API 2.0 (ECMA-402)
      The definition of ‘Intl.NumberFormat.prototype’ in that specification.](https://www.ecma-international.org/ecma-402/2.0/#sec-11.2.1)Standard 
      [ECMAScript Internationalization API 4.0 (ECMA-402)
      The definition of ‘Intl.NumberFormat.prototype’ in that specification.](https://tc39.es/ecma402/#sec-Intl.NumberFormat.prototype)Draft 

      See also

      目录
      目录