JavaScript/array/forEach:修订间差异
来自康健生活
< JavaScript | array
创建页面,内容为“== 标题文字 == {{leftrightflex|<syntaxhighlight lang="javascript"> [1, 2, 3, 4, 5].forEach(n => console.log(n * n));</syntaxhighlight>|{{consoleout|<pre> 1 4 9 1…” |
小 文字替换 -“{{leftrightflex|”替换为“{{Double-columns|” |
||
| 第1行: | 第1行: | ||
== 标题文字 == | == 标题文字 == | ||
{{ | {{Double-columns|<syntaxhighlight lang="javascript"> | ||
[1, 2, 3, 4, 5].forEach(n => console.log(n * n));</syntaxhighlight>|{{consoleout|<pre> | [1, 2, 3, 4, 5].forEach(n => console.log(n * n));</syntaxhighlight>|{{consoleout|<pre> | ||
1 | 1 | ||
2026年11月26日 (四) 10:11的最新版本
标题文字
[1, 2, 3, 4, 5].forEach(n => console.log(n * n));
1 4 9 16 25
No categories