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 --- .../web/javascript/reference/global_objects/string/indexof/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/indexof') 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 5bb7b532fc..21434132e5 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 @@ -115,7 +115,7 @@ console.log('myCapString.indexOf("cheddar") is ' + myCapString.indexOf("cheddar"

使用 indexOf 统计一个字符串中某个字母出现的次数

-

在下例中,设置了 count 来记录字母 e 在字符串 str 中出现的次数:

+

在下例中,设置了 count 来记录字母 e 在字符串 str 中出现的次数:

// 翻译:生存还是毁灭?这是个问题。(莎士比亚《哈姆雷特》)
 var str = 'To be, or not to be, that is the question.';
-- 
cgit v1.2.3-54-g00ecf