JavaScript/随机:修订间差异
来自康健生活
创建页面,内容为“== 引言 == == 字符串 == 随机十个字符串。 {{leftrightflex|<syntaxhighlight lang="javascript"> Math.random().toString(36).substr(2)</syntaxhighlight>|{{co…” |
小 文字替换 -“{{leftrightflex|”替换为“{{Double-columns|” 标签:ReplaceText 移动版编辑 移动版网页编辑 |
||
| 第2行: | 第2行: | ||
== 字符串 == | == 字符串 == | ||
随机十个字符串。 | 随机十个字符串。 | ||
{{ | {{Double-columns|<syntaxhighlight lang="javascript"> | ||
Math.random().toString(36).substr(2)</syntaxhighlight>|{{consoleout|<pre>'dfsqz1iljh' | Math.random().toString(36).substr(2)</syntaxhighlight>|{{consoleout|<pre>'dfsqz1iljh' | ||
</pre>}}}} | </pre>}}}} | ||