Intl.DateTimeFormat.prototype表示 Intl.DateTimeFormat构造函数的原型对象。
Intl.DateTimeFormat.prototype 属性的属性特性: |
|
|---|---|
| writable | false |
| enumerable | false |
| configurable | false |
描述
参见 DateTimeFormat来看Intl.DateTimeFormat实例的一个描述。
属性
-
Intl.DateTimeFormat.prototype.constructor -
请参考
Intl.DateTimeFormat. -
Intl.DateTimeFormat.prototype.format -
Getter; 返回一个
DateTimeFormat对象的根据locale和格式化参数格式化日期的函数。
方法
-
Intl.DateTimeFormat.prototype.formatToParts() -
Returns an
Arrayof objects representing the date string in parts that can be used for custom locale-aware formatting. -
Intl.DateTimeFormat.prototype.resolvedOptions() - 返回一个新的属性对象,反射出在对象初始化过程中计算出的locale和options的各个值。
规范
浏览器兼容性
We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains.
Find out how you can help!
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|
| Basic support | 24 | 29 (29) | 11 | 15 | 未实现 |
| Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | 未实现 | 26 | 未实现 | 未实现 | 未实现 | 未实现 |