diff options
| author | Irvin <irvinfly@gmail.com> | 2022-02-16 02:07:31 +0800 |
|---|---|---|
| committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
| commit | d9e9adb5f80a819fe46349bcf6d1faec734b09cd (patch) | |
| tree | e856dc5e31aad0a7d5e8c2f98c9ee139d9569a86 /files/zh-cn/web/javascript/reference/global_objects/object/tosource | |
| parent | 7c2556fe79c44d7c31108b8c8b048d2b7704a95e (diff) | |
| download | translated-content-d9e9adb5f80a819fe46349bcf6d1faec734b09cd.tar.gz translated-content-d9e9adb5f80a819fe46349bcf6d1faec734b09cd.tar.bz2 translated-content-d9e9adb5f80a819fe46349bcf6d1faec734b09cd.zip | |
remove span tag in zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/object/tosource')
| -rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/object/tosource/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/object/tosource/index.html b/files/zh-cn/web/javascript/reference/global_objects/object/tosource/index.html index 23d070b86a..e609077520 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/object/tosource/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/object/tosource/index.html @@ -73,7 +73,7 @@ alert(new Person("Joe").toSource()); // ---> new Person("Joe")</pre> <h3 id="循环引用限制">循环引用限制</h3> -<p><span id="noHighlight_0.3266603437527873">对于包含对自身的引用的对象 (例如, 循环链表或可以遍历两种方式的树), </span><code>toSource()</code><span>不会重新创建自引用, 如火狐24。例如:</span></p> +<p>对于包含对自身的引用的对象 (例如, 循环链表或可以遍历两种方式的树), <code>toSource()</code>不会重新创建自引用, 如火狐24。例如:</p> <pre class="brush: js">var obj1 = {}; var obj2 = { a: obj1 }; @@ -87,7 +87,7 @@ obj1 = eval(objSource); console.log('Cyclical: ' + (obj1.b.a == obj1));</pre> -<p><span id="noHighlight_0.30716570898096807">如果使用循环结构, 并且需要 </span><code>toSource()</code><span>, 则对象必须提供对 </span><code>toSource()</code><span> 的重写, 无论是对构造函数的引用还是提供匿名函数。</span></p> +<p>如果使用循环结构, 并且需要 <code>toSource()</code>, 则对象必须提供对 <code>toSource()</code> 的重写, 无论是对构造函数的引用还是提供匿名函数。</p> <h2 id="Examples" name="Examples">示例</h2> |
