From c40612041809fe289aba58aefa170bbe784aba1f Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:07 +0800 Subject: remove name attribute for zh-CN --- .../reference/global_objects/string/charat/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/charat') 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 31b512ada0..ab72e58c81 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 @@ -7,15 +7,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/charAt ---

{{JSRef}}

-

概述

+

概述

charAt() 方法从一个字符串中返回指定的字符。

-

语法

+

语法

str.charAt(index)
-

参数

+

参数

index
@@ -24,13 +24,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/charAt
 
-

描述

+

描述

字符串中的字符从左向右索引,第一个字符的索引值为 0,最后一个字符(假设该字符位于字符串 stringName 中)的索引值为 stringName.length - 1。 如果指定的 index 值超出了该范围,则返回一个空字符串。

-

示例

+

示例

-

例子:输出字符串中不同位置的字符

+

例子:输出字符串中不同位置的字符

下例输出字符串 "Brave new world" 不同位置处的字符:

@@ -269,7 +269,7 @@ function getWholeCharAndI (str, i) { -

相关链接

+

相关链接