diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/errors/negative_repetition_count')
-rw-r--r-- | files/zh-cn/web/javascript/reference/errors/negative_repetition_count/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/reference/errors/negative_repetition_count/index.html b/files/zh-cn/web/javascript/reference/errors/negative_repetition_count/index.html index 780bdabcf4..94a79e94a8 100644 --- a/files/zh-cn/web/javascript/reference/errors/negative_repetition_count/index.html +++ b/files/zh-cn/web/javascript/reference/errors/negative_repetition_count/index.html @@ -22,7 +22,7 @@ RangeError: Invalid count value (Chrome) <h2 id="发生了什么">发生了什么?</h2> -<p>代码中使用了 {{jsxref("String.prototype.repeat()")}}方法。<span class="short_text" id="result_box" lang="zh-CN"><span>它有一个计数参数,表示重复该字符串的次数</span></span>。该参数必须在 0 及正 {{jsxref("Infinity")}} 之间,且不能为负数。该值的合法范围可以这样表示: [0, +∞)。</p> +<p>代码中使用了 {{jsxref("String.prototype.repeat()")}}方法。它有一个计数参数,表示重复该字符串的次数。该参数必须在 0 及正 {{jsxref("Infinity")}} 之间,且不能为负数。该值的合法范围可以这样表示: [0, +∞)。</p> <h2 id="示例">示例</h2> |