From d44f5032d0f53256b2d5aef505d6b593fd3cd158 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:14:18 +0800 Subject: fix yari h2m dry run errors (zh-CN) --- .../global_objects/regexp/lastindex/index.html | 53 ++-------------------- 1 file changed, 5 insertions(+), 48 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex') diff --git a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html index ddfe60c595..4201b4649b 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/regexp/lastindex/index.html @@ -15,7 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/lastIndex
{{js_property_attributes(1,0,0)}}

语法

-
lastIndex = regExpObj.lastIndex;
+
lastIndex = regExpObj.lastIndex;

描述

只有正则表达式使用了表示全局检索的 "g" 标志时,该属性才会起作用。此时应用下面的规则: