From 8d1313c84cc82d81363ed62b75baedb9a65ff2e3 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:08:24 +0800 Subject: remove font tag in zh-CN --- .../global_objects/intl/collator/index.html | 4 +- .../global_objects/intl/datetimeformat/index.html | 2 +- .../global_objects/intl/numberformat/index.html | 2 +- .../global_objects/intl/pluralrules/index.html | 68 +++++++++++----------- 4 files changed, 38 insertions(+), 38 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/intl') diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/collator/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/collator/index.html index 640bb0b9e4..44f6ab11f9 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/intl/collator/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/intl/collator/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/Collator ---
{{JSRef}}
-

Intl.Collator 是用于语言敏感字符串比较的 collators构造函数。

+

Intl.Collator 是用于语言敏感字符串比较的 collators构造函数。

{{EmbedInteractiveExample("pages/js/intl-collator.html")}}
@@ -52,7 +52,7 @@ Intl.Collator.call(this[, locales[, options]])<
  • "variant": 字符串的字母,口音和其他变音符号、或不同大小写比较不相等。 也可以考虑其他差异。例如: a ≠ b, a ≠ á, a ≠ A.
  • -

    "variant" 的默认值使用 "sort"; 它的 locale 依赖于使用 "search".

    +

    "variant" 的默认值使用 "sort"; 它的 locale 依赖于使用 "search".

    ignore­Punctua­tion
    是否应忽略标点。 可能的值为 true 和 false; 默认值为 false。
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html index eb886cb8b8..a6c1e7c5dc 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/intl/datetimeformat/index.html @@ -169,7 +169,7 @@ console.log(new Intl.DateTimeFormat(['ban', 'id']).format(date));

    使用options

    -

    可以使用 options 参数来自定义 日期时间格式化方法返回的字符串。

    +

    可以使用 options 参数来自定义 日期时间格式化方法返回的字符串。

    var date = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
     
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
    index 51520c2b83..5e49aa512d 100644
    --- a/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
    +++ b/files/zh-cn/web/javascript/reference/global_objects/intl/numberformat/index.html
    @@ -186,7 +186,7 @@ console.log(new Intl.NumberFormat('en-IN', { maximumSignificantDigits: 3 }).form
     
     
    -

    Using notation

    +

    Using notation

    console.log(new Intl.NumberFormat('en-US', { notation: "scientific" }).format(987654321));
     // → 9.877E8
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html b/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html
    index ede977838a..77f7426002 100644
    --- a/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html
    +++ b/files/zh-cn/web/javascript/reference/global_objects/intl/pluralrules/index.html
    @@ -3,75 +3,75 @@ title: Intl.PluralRules
     slug: Web/JavaScript/Reference/Global_Objects/Intl/PluralRules
     translation_of: Web/JavaScript/Reference/Global_Objects/Intl/PluralRules
     ---
    -
    {{JSRef}}
    +
    {{JSRef}}

    Intl.PluralRules对象是用于启用多种敏感格式和多种语言规则的构造函数。

    -

    句法

    +

    句法

    new Intl.PluralRules([locales[, options]]) Intl.PluralRules.call(this[, locales[, options]])
     
    -

    参数

    +

    参数>

    locales
    -

    可选的。一个带有BCP 47语言标签的字符串或这种字符串的数组。有关参数的一般形式和解释locales,请参阅{{jsxref("Intl", "Intl page", "#Locale_identification_and_negotiation", 1)}}

    +

    可选的。一个带有BCP 47语言标签的字符串或这种字符串的数组。有关参数的一般形式和解释locales,请参阅{{jsxref("Intl", "Intl page", "#Locale_identification_and_negotiation", 1)}}。

    options
    -

    可选的,具有部分或全部以下属性的对象:

    +

    可选的,具有部分或全部以下属性的对象:

    localeMatcher
    -
    要使用的语言环境匹配算法。可能的值是"lookup""best fit"; 默认是"best fit"有关此选项的信息,请参阅{{jsxref("Global_Objects/Intl", "Intl page", "#Locale_negotiation", 1)}}
    +
    要使用的语言环境匹配算法。可能的值是"lookup""best fit"; 默认是"best fit"。有关此选项的信息,请参阅{{jsxref("Global_Objects/Intl", "Intl page", "#Locale_negotiation", 1)}}。
    type
    -
    要使用的类型。可能的值是: +
    要使用的类型。可能的值是:
      -
    • "cardinal"对于基数(指的是事物的数量)。这是默认值。
    • -
    • "ordinal" 对于序号(指的是事物的排序或排名,例如英文中的“1st”,“2nd”,“3rd”)。
    • +
    • "cardinal"对于基数(指的是事物的数量)。这是默认值。
    • +
    • "ordinal" 对于序号(指的是事物的排序或排名,例如英文中的“1st”,“2nd”,“3rd”)。
    -

    描述

    +

    描述

    -

    属性

    +

    属性

    {{jsxref("PluralRules.prototype", "Intl.PluralRules.prototype")}}
    -
    允许为所有对象添加属性。
    +
    允许为所有对象添加属性。
    -

    方法

    +

    方法

    {{jsxref("PluralRules.supportedLocalesOf", "Intl.PluralRules.supportedLocalesOf()")}}
    -
    返回一个数组,其中包含提供的语言环境的支持,而不必回退到运行时的默认语言环境。
    +
    返回一个数组,其中包含提供的语言环境的支持,而不必回退到运行时的默认语言环境。
    -

    PluralRules 实例

    +

    PluralRules 实例

    -

    属性

    +

    属性

    -

    PluralRules 实例从其原型继承了以下属性:

    +

    PluralRules 实例从其原型继承了以下属性:

    {{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules/prototype', 'Properties')}}
    -

    方法

    +

    方法>

    -

    PluralRules 实例从它们的原型继承了以下方法:

    +

    PluralRules 实例从它们的原型继承了以下方法:

    {{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules/prototype', 'Methods')}}
    -

    例子

    +

    例子

    -

    基本用法

    +

    基本用法 -

    在没有指定语言环境的基本使用中,返回默认语言环境中的格式化字符串和默认选项这有助于区分单数和复数形式,例如“dog”和“dogs”。

    +

    在没有指定语言环境的基本使用中,返回默认语言环境中的格式化字符串和默认选项。这有助于区分单数和复数形式,例如“dog”和“dogs”。

    var pr = new Intl.PluralRules();
     
    @@ -84,9 +84,9 @@ pr.select(1);
     pr.select(2);
     // → 'other' if in US English locale
    -

    运用 locales

    +

    运用 locales

    -

    这个例子展示了局部复数规则的一些变化。为了获得应用程序用户界面中使用的语言格式,请确保使用locales参数指定该语言(可能还有一些备用语言)

    +

    这个例子展示了局部复数规则的一些变化。为了获得应用程序用户界面中使用的语言格式,请确保使用locales参数指定该语言(可能还有一些备用语言)>

    // Arabic has different plural rules
     
    @@ -101,9 +101,9 @@ new Intl.PluralRules('ar-EG').select(6);
     new Intl.PluralRules('ar-EG').select(18);
     // → 'many'
    -

    运用 options

    +

    运用 -

    可以查询查询结果使用options参数进行自定义,该参数具有一个type您可以设置的属性ordinal这对计算序数指标很有用,例如“第一”,“第二”,“第三”,“第四”,“42”等。

    +

    可以查询查询结果使用>options参数进行自定义,该参数具有一个type您可以设置的属性ordinal。这对计算序数指标很有用,例如“第一”,“第二”,“第三”,“第四”,“42”等。

    var pr = new Intl.PluralRules('en-US', { type: 'ordinal' });
     
    @@ -125,19 +125,19 @@ pr.select(42);
     
    -   
    -   
    -   
    +   
    +   
    +   
    -   
    -   
    -   
    +   
    +   
    +   
    规范状态评论规范状态评论
    国际复数规则草案{{Spec2('ES Int Draft')}}初始定义国际复数规则草案{{Spec2('ES Int Draft')}}初始定义
    -

    浏览器兼容性

    +

    浏览器兼容性

    @@ -145,6 +145,6 @@ pr.select(42);

    {{Compat("javascript.builtins.Intl.PluralRules")}}

    -

    也可以看看

    +

    也可以看看

    {{page('/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl', 'See_also')}}
    -- cgit v1.2.3-54-g00ecf