diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html b/files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html index 6784bfb61f..97b7bf23aa 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/string/includes/index.html @@ -25,12 +25,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/String/includes <dd>要在此字符串中搜索的字符串。</dd> <dt><code><var>position</var></code> {{optional_inline}}</dt> <dd>从当前字符串的哪个索引位置开始搜寻子字符串,默认值为 <code>0</code>。</dd> - <dt> - <h3 id="返回值">返回值</h3> - </dt> - <dd>如果当前字符串包含被搜寻的字符串,就返回 <strong><code>true</code></strong>;否则返回 <strong><code>false</code></strong>。</dd> </dl> +<h3 id="返回值">返回值</h3> +<p>如果当前字符串包含被搜寻的字符串,就返回 <strong><code>true</code></strong>;否则返回 <strong><code>false</code></strong>。</p> + <h2 id="描述">描述</h2> <p>这个方法可以帮你判断一个字符串是否包含另外一个字符串。</p> |