首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

Intl.DateTimeFormat.prototype

Intl.DateTimeFormat.prototype属性表示Intl.DateTimeFormat构造函数的原型对象。

| Intl.DateTimeFormat.prototype属性的属性特性 |

|:----|

| Writable | no |

| Enumerable | no |

| Configurable | no |

描述

请参阅有关实例DateTimeFormat的说明Intl.DateTimeFormat

Intl.DateTimeFormat实例继承自Intl.DateTimeFormat.prototype。所有Intl.DateTimeFormat实例都会继承对原型对象的修改。

属性

Intl.DateTimeFormat.prototype.constructor对...的引用Intl.DateTimeFormatIntl.DateTimeFormat.prototype.format吸气; 根据此DateTimeFormat对象的区域设置和格式化选项返回一个格式化日期的函数。

方法

Intl.DateTimeFormat.prototype.formatToParts()返回Array表示可用于自定义语言环境感知格式设置的部分中日期字符串的对象。Intl.DateTimeFormat.prototype.resolvedOptions()返回具有反映对象初始化期间计算的语言环境和格式选项属性的新对象。

产品规格

Specification

Status

Comment

ECMAScript Internationalization API 1.0 (ECMA-402)The definition of 'Intl.DateTimeFormat.prototype' in that specification.

Standard

Initial definition.

ECMAScript Internationalization API 2.0 (ECMA-402)The definition of 'Intl.DateTimeFormat.prototype' in that specification.

Standard

?

ECMAScript Internationalization API 4.0 (ECMA-402)The definition of 'Intl.DateTimeFormat.prototype' in that specification.

Draft

?

浏览器兼容性

Feature

Chrome

Firefox (Gecko)

Internet Explorer

Opera

Safari (WebKit)

Basic support

24

29 (29)

11

15

No support

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

No support

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com