From 81bcc7939165a0de4cf4aeab650c4c4e43b2de01 Mon Sep 17 00:00:00 2001 From: 小半 <32007823+BuiltCat@users.noreply.github.com> Date: Mon, 29 Nov 2021 23:10:09 +0800 Subject: Fix syntax highlight, Web/JavaScript/Closures, zh-CN (#3208) Part of the code in this page does not support highlighting, and now I have fixed it. The code location is on line 336. --- files/zh-cn/web/javascript/closures/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/zh-cn/web/javascript/closures/index.html b/files/zh-cn/web/javascript/closures/index.html index 9c14c74c62..c2a1cca928 100644 --- a/files/zh-cn/web/javascript/closures/index.html +++ b/files/zh-cn/web/javascript/closures/index.html @@ -333,7 +333,7 @@ setupHelp();

另一个可选方案是使用 forEach()来遍历helpText数组并给每一个<p>添加一个监听器,如下所示:

-
function showHelp(help) {
+
function showHelp(help) {
   document.getElementById('help').innerHTML = help;
 }
 
-- 
cgit v1.2.3-54-g00ecf