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

Intl.Collator.prototype

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

| Intl.Collat??or.prototype的属性|

|:----|

| Writable | no |

| Enumerable | no |

| Configurable | no |

描述

请参阅有关实例Collator,来了解Intl.Collator示例。

Intl.Collator实例继承自Intl.Collator.prototype。原型对象的修改被所有Intl.Collator实例继承。

属性

Intl.Collator.prototype.compare Getter; 返回一个根据这个Intl.Collator对象的排序顺序比较两个字符串的函数。Intl.Collator.prototype.constructor参考Intl.Collator

方法

Intl.Collator.prototype.resolvedOptions()返回一个新对象,这些属性反映在对象初始化期间计算的区域设置和排序规则。

规范

Specification

Status

Comment

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

Standard

Initial definition.

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

Standard

?

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

Draft

?

浏览器兼容性

Feature

Chrome

Edge

Firefox (Gecko)

Internet Explorer

Opera

Safari (WebKit)

Basic support

24

(Yes)

29 (29)

11

15

No support

Feature

Android

Chrome for Android

Edge

Firefox Mobile (Gecko)

IE Phone

Opera Mobile

Safari Mobile

Basic support

No support

26

(Yes)

56.0 (56)

No support

No support

No support

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com