Intl.NumberFormat.prototype
该Intl.NumberFormat.prototype属性表示Intl.NumberFormat构造函数的原型对象。
| Intl.NumberFormat.prototype 属性的属性特性|
|:----|
| Writable | no |
| Enumerable | no |
| Configurable | no |
描述
请参阅有关实例NumberFormat的说明Intl.NumberFormat。
Intl.NumberFormat实例继承自Intl.NumberFormat.prototype。原型对象的修改被所有Intl.NumberFormat实例继承。
属性
Intl.NumberFormat.prototype.constructor参考Intl.NumberFormat。Intl.NumberFormat.prototype.format吸气; 返回根据此NumberFormat对象的区域设置和格式化选项来格式化数字的函数。
方法
Intl.NumberFormat.prototype.resolvedOptions()返回具有反映在对象初始化期间计算的语言环境和排序规则选项的属性的新对象。
规范
Specification | Status | Comment |
|---|---|---|
ECMAScript Internationalization API 1.0 (ECMA-402)The definition of 'Intl.NumberFormat.prototype' in that specification. | Standard | Initial definition. |
ECMAScript Internationalization API 2.0 (ECMA-402)The definition of 'Intl.NumberFormat.prototype' in that specification. | Standard | |
ECMAScript Internationalization API 4.0 (ECMA-402)The definition of 'Intl.NumberFormat.prototype' in that specification. | Draft | |
浏览器兼容性
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
Basic support | 24 | 29 (29) | 11 | 15 | 10 |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
Basic support | No support | 26 | 56.0 (56) | No support | No support | 10 |
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

