From e48f0a637c058b51a6268e0c2c384957e03d2b60 Mon Sep 17 00:00:00 2001 From: Lete Date: Fri, 18 Mar 2022 13:59:47 +0800 Subject: fix: Poorly articulated statements --- .../javascript/reference/global_objects/string/localecompare/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/localecompare') diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/localecompare/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/localecompare/index.html index 88644d61b8..257ae97822 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/localecompare/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/localecompare/index.html @@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/localeCompare

localeCompare() 方法返回一个数字来指示一个参考字符串是否在排序顺序前面或之后或与给定字符串相同。

-

新的 locales 、 options 参数能让应用程序定制函数的行为即指定用来排序的语言。  localesoptions 参数是依赖于具体实现的,在旧的实现中这两个参数是完全被忽略的。

+

新的 localesoptions 参数能让应用程序定制函数的行为,即指定用来排序的语言。 localesoptions 参数完全取决于实现,在旧的实现中忽略这两个参数。

语法

-- cgit v1.2.3-54-g00ecf