diff options
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/symbol')
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html | 2 | ||||
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html index f37ad018db..ee5396779f 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/search/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/search --- <div>{{JSRef}}</div> -<div></div> + <p><code>Symbol.search 指定了一个搜索方法,这个方法接受用户输入的正则表达式,返回该正则表达式在字符串中匹配到的下标,这个方法由以下的方法来调用 </code>{{jsxref("String.prototype.search()")}}。</p> diff --git a/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html b/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html index 18c1c5a6e9..c93b5a1e47 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/symbol/toprimitive/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive --- <div>{{JSRef}}</div> -<div></div> + <p><code><strong>Symbol.toPrimitive</strong></code> 是一个内置的 Symbol 值,它是作为对象的函数值属性存在的,当一个对象转换为对应的原始值时,会调用此函数。</p> |
