一个接口,提供对语言敏感的字符串比较功能。
An interface that provides language-sensitive string comparison.
比较两个字符串。
Compares two strings.
要比较的第一个字符串。
The first string to compare.
要比较的第二个字符串。
The second string to compare.
一个数字,指示 x 是在 y 之前、之后还是与 y 相同。
x
y
A number indicating whether x comes before, after, or is the same as y.
返回一个包含此 Collator 对象计算出的区域设置和排序规则选项的对象。
Collator
Returns an object with the locale and collation options computed for this Collator object.
Zh
一个接口,提供对语言敏感的字符串比较功能。
En
An interface that provides language-sensitive string comparison.