From c4576ded828eb9a5ef5f032c8f9409a7116f80a1 Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:06 +0800 Subject: remove id attribute not in heading for zh-CN --- .../reference/global_objects/string/@@iterator/index.html | 4 ++-- .../javascript/reference/global_objects/string/anchor/index.html | 6 +++--- .../web/javascript/reference/global_objects/string/big/index.html | 4 ++-- .../web/javascript/reference/global_objects/string/blink/index.html | 4 ++-- .../web/javascript/reference/global_objects/string/bold/index.html | 6 +++--- .../javascript/reference/global_objects/string/charat/index.html | 4 ++-- .../reference/global_objects/string/codepointat/index.html | 4 ++-- .../web/javascript/reference/global_objects/string/fixed/index.html | 6 +++--- .../javascript/reference/global_objects/string/fontcolor/index.html | 4 ++-- .../javascript/reference/global_objects/string/fontsize/index.html | 4 ++-- .../zh-cn/web/javascript/reference/global_objects/string/index.html | 4 ++-- .../javascript/reference/global_objects/string/indexof/index.html | 2 +- .../javascript/reference/global_objects/string/italics/index.html | 4 ++-- .../reference/global_objects/string/lastindexof/index.html | 4 ++-- .../javascript/reference/global_objects/string/length/index.html | 4 ++-- .../web/javascript/reference/global_objects/string/match/index.html | 4 ++-- .../web/javascript/reference/global_objects/string/small/index.html | 4 ++-- .../javascript/reference/global_objects/string/strike/index.html | 4 ++-- .../web/javascript/reference/global_objects/string/sub/index.html | 4 ++-- .../javascript/reference/global_objects/string/substr/index.html | 4 ++-- .../javascript/reference/global_objects/string/substring/index.html | 4 ++-- .../web/javascript/reference/global_objects/string/sup/index.html | 4 ++-- .../reference/global_objects/string/tolocalelowercase/index.html | 4 ++-- .../reference/global_objects/string/tolocaleuppercase/index.html | 4 ---- .../reference/global_objects/string/tolowercase/index.html | 6 ++---- .../javascript/reference/global_objects/string/tosource/index.html | 4 ++-- .../javascript/reference/global_objects/string/tostring/index.html | 4 ++-- 27 files changed, 54 insertions(+), 60 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/string') diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html index 8ea489430f..abbf9ae0b8 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/@@iterator/index.html @@ -80,7 +80,7 @@ for (var v of string) {
{{CompatibilityTable}}
-
+
@@ -103,7 +103,7 @@ for (var v of string) {
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html index 0b3a4169cd..b48e62e0f8 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/anchor/index.html @@ -20,7 +20,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/anchor

anchor() 方法创建一个 {{HTMLElement("a")}} HTML 锚元素,被用作超文本靶标(hypertext target)。

-

语法

+

语法

str.anchor(name) 
@@ -77,7 +77,7 @@ document.body.innerHTML = myString.anchor("contents_anchor");

{{ CompatibilityTable() }}

-
+
@@ -100,7 +100,7 @@ document.body.innerHTML = myString.anchor("contents_anchor");
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html index 127079b1df..e45ae963c1 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/big/index.html @@ -67,7 +67,7 @@ console.log(worldString.fontsize(7)); // <fontsize=7>Hello, world</font
{{CompatibilityTable}}
-
+
@@ -90,7 +90,7 @@ console.log(worldString.fontsize(7)); // <fontsize=7>Hello, world</font
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html index 88cdb9cbf8..e423d8fbfd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/blink/index.html @@ -62,7 +62,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike>
{{CompatibilityTable}}
-
+
@@ -85,7 +85,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike>
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html index 3b2c66d11a..43d6f9d448 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/bold/index.html @@ -9,7 +9,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/bold ---

{{JSRef}} {{deprecated_header}}

-

bold() 方法会创建 HTML 元素 “b”,并将字符串加粗展示。

+

bold() 方法会创建 HTML 元素 “b”,并将字符串加粗展示。

语法

@@ -62,7 +62,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike>
{{CompatibilityTable}}
-
+
@@ -85,7 +85,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike>
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html index 3ed7dd0e7b..31b512ada0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/charat/index.html @@ -221,7 +221,7 @@ function getWholeCharAndI (str, i) {

{{ CompatibilityTable() }}

-
+
@@ -244,7 +244,7 @@ function getWholeCharAndI (str, i) {
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html index 567de8abc1..9a204e9c4b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/codepointat/index.html @@ -115,7 +115,7 @@ if (!String.prototype.codePointAt) {
{{CompatibilityTable}}
-
+
@@ -138,7 +138,7 @@ if (!String.prototype.codePointAt) {
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html index 03576dd5a1..28dd7c8696 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/fixed/index.html @@ -22,7 +22,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/fixed

描述

-

fixed() 方法将一个字符串包裹在<tt></tt>标签中,比如: "<tt>str</tt>".

+

fixed() 方法将一个字符串包裹在<tt></tt>标签中,比如: "<tt>str</tt>".

举例

@@ -60,7 +60,7 @@ console.log(worldString.fixed()); // "<tt>Hello, world</tt>"
{{CompatibilityTable}}
-
+
@@ -83,7 +83,7 @@ console.log(worldString.fixed()); // "<tt>Hello, world</tt>"
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html index 64c397f8e7..551cb5ffa0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/fontcolor/index.html @@ -84,7 +84,7 @@ console.log(worldString.fontcolor('FF00') + ' is red in hexadecimal'
{{CompatibilityTable}}
-
+
@@ -107,7 +107,7 @@ console.log(worldString.fontcolor('FF00') + ' is red in hexadecimal'
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html index b5662d12aa..005cfe0fb0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/fontsize/index.html @@ -74,7 +74,7 @@ console.log(worldString.fontsize(7)); // <font size="7">Hello, world</f
{{CompatibilityTable}}
-
+
@@ -97,7 +97,7 @@ console.log(worldString.fontsize(7)); // <font size="7">Hello, world</f
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/index.html index c69faea0c4..bcfc0bf5ec 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/index.html @@ -298,7 +298,7 @@ for (let i = 0, n = inputValues.length; i < n; ++i) {

{{ CompatibilityTable() }}

-
+
@@ -321,7 +321,7 @@ for (let i = 0, n = inputValues.length; i < n; ++i) {
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html index 80213be40f..28f9d9a5fc 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/indexof/index.html @@ -69,7 +69,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/indexOf "Blue Whale".indexOf("", 10) // 返回 10 "Blue Whale".indexOf("", 11) // 返回 10 -

indexOf 方法是区分大小写的。例如,下面的表达式将返回 -1

+

indexOf 方法是区分大小写的。例如,下面的表达式将返回 -1

"Blue Whale".indexOf("blue")      // 返回 -1
 
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html index 80ee07eabc..91f574b4bf 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/italics/index.html @@ -52,7 +52,7 @@ console.log(worldString.strike()); // Hello, world
{{CompatibilityTable}}
-
+
@@ -75,7 +75,7 @@ console.log(worldString.strike()); // Hello, world
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html index e4b6dd8681..56ba74598a 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/lastindexof/index.html @@ -103,7 +103,7 @@ console.log("The index of 'new' from the end is " + anyString.lastIndexOf("new")
{{CompatibilityTable}}
-
+
@@ -126,7 +126,7 @@ console.log("The index of 'new' from the end is " + anyString.lastIndexOf("new")
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html index c51f812f6d..9ec301ff64 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/length/index.html @@ -80,7 +80,7 @@ console.log("The empty string is has a length of " + empty.length);

{{ CompatibilityTable() }}

-
+
@@ -103,7 +103,7 @@ console.log("The empty string is has a length of " + empty.length);
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html index 5f5b701e63..d93b8bebef 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/match/index.html @@ -149,7 +149,7 @@ str3.match(null); // 返回["null"]

{{ CompatibilityTable() }}

-
+
@@ -172,7 +172,7 @@ str3.match(null); // 返回["null"]
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html index 7b55c68248..834ceed5ac 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/small/index.html @@ -63,7 +63,7 @@ console.log(worldString.fontsize(7)); // <font size="7">Hello, world</f
{{CompatibilityTable}}
-
+
@@ -86,7 +86,7 @@ console.log(worldString.fontsize(7)); // <font size="7">Hello, world</f
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html index 3e904a9651..12304c18cf 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/strike/index.html @@ -59,7 +59,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike>
{{CompatibilityTable}}
-
+
@@ -82,7 +82,7 @@ console.log(worldString.strike()); // <strike>Hello, world</strike>
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html index 8c47471d25..69402cb285 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/sub/index.html @@ -64,7 +64,7 @@ console.log('This is what a ' + subText.sub() + ' looks like.');
{{CompatibilityTable}}
-
+
@@ -87,7 +87,7 @@ console.log('This is what a ' + subText.sub() + ' looks like.');
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html index 782816ee91..2aad2f2647 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/substr/index.html @@ -108,7 +108,7 @@ if ('ab'.substr(-1) != 'b')

{{ CompatibilityTable() }}

-
+
@@ -131,7 +131,7 @@ if ('ab'.substr(-1) != 'b')
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html index f35badbe86..445b0dfea5 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/substring/index.html @@ -138,7 +138,7 @@ replaceString("World", "Web", "Brave New World");

{{ CompatibilityTable() }}

-
+
@@ -161,7 +161,7 @@ replaceString("World", "Web", "Brave New World");
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html index 118bbd1f2e..15616dfc08 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/sup/index.html @@ -63,7 +63,7 @@ console.log('This is what a ' + subText.sub() + ' looks like.');
{{CompatibilityTable}}
-
+
@@ -86,7 +86,7 @@ console.log('This is what a ' + subText.sub() + ' looks like.');
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html index 95b8378bbe..c4f1025029 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/tolocalelowercase/index.html @@ -88,7 +88,7 @@ let locales = ['tr', 'TR', 'tr-TR', 'tr-u-co-search', 'tr-x-turkish'];
{{CompatibilityTable}}
-
+
@@ -111,7 +111,7 @@ let locales = ['tr', 'TR', 'tr-TR', 'tr-u-co-search', 'tr-x-turkish'];
-
+
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tolocaleuppercase/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tolocaleuppercase/index.html index d6fe58b0a5..b1b92a19a6 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/tolocaleuppercase/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/tolocaleuppercase/index.html @@ -83,7 +83,3 @@ let locales = ['lt', 'LT', 'lt-LT', 'lt-u-co-phonebk', 'lt-x-lietuva'];
  • {{jsxref("String.prototype.toLowerCase()")}}
  • {{jsxref("String.prototype.toUpperCase()")}}
  • - -
    -
    -
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html index b1b9f6266d..f556822b2e 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/tolowercase/index.html @@ -18,8 +18,6 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase
    str.toLowerCase()
     
    -

    -

    返回值

    一个新的字符串,表示转换为小写的调用字符串。

    @@ -79,7 +77,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase
    {{CompatibilityTable}}
    -
    +
    @@ -102,7 +100,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toLowerCase
    -
    +
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html index 7914776a25..756758d877 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/tosource/index.html @@ -36,7 +36,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toSource
    {{CompatibilityTable}}
    -
    +
    @@ -59,7 +59,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/toSource
    -
    +
    diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html index 192ae75b12..f8f9d021da 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/tostring/index.html @@ -68,7 +68,7 @@ alert(x.toString()) // 输出 "Hello world"

    {{ CompatibilityTable() }}

    -
    +
    @@ -91,7 +91,7 @@ alert(x.toString()) // 输出 "Hello world"
    -
    +
    -- cgit v1.2.3-54-g00ecf