aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/web_workers_api
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:53 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:53 +0100
commitfc56124ac4eda6b3f0349c8a16fa750f27b4c7d6 (patch)
tree7089f49c5dcc5428f29711439ab79ac387caf44f /files/zh-cn/web/api/web_workers_api
parent310fd066e91f454b990372ffa30e803cc8120975 (diff)
downloadtranslated-content-fc56124ac4eda6b3f0349c8a16fa750f27b4c7d6.tar.gz
translated-content-fc56124ac4eda6b3f0349c8a16fa750f27b4c7d6.tar.bz2
translated-content-fc56124ac4eda6b3f0349c8a16fa750f27b4c7d6.zip
unslug zh-cn: modify
Diffstat (limited to 'files/zh-cn/web/api/web_workers_api')
-rw-r--r--files/zh-cn/web/api/web_workers_api/structured_clone_algorithm/index.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/web_workers_api/structured_clone_algorithm/index.html b/files/zh-cn/web/api/web_workers_api/structured_clone_algorithm/index.html
index 60444f8dc4..5f59c5f8a0 100644
--- a/files/zh-cn/web/api/web_workers_api/structured_clone_algorithm/index.html
+++ b/files/zh-cn/web/api/web_workers_api/structured_clone_algorithm/index.html
@@ -1,11 +1,12 @@
---
title: 结构化克隆算法
-slug: Web/Guide/API/DOM/The_structured_clone_algorithm
+slug: Web/API/Web_Workers_API/Structured_clone_algorithm
tags:
- DOM
- HTML5
- 结构化克隆算法
translation_of: Web/API/Web_Workers_API/Structured_clone_algorithm
+original_slug: Web/Guide/API/DOM/The_structured_clone_algorithm
---
<p>结构化克隆算法是<a href="http://www.w3.org/html/wg/drafts/html/master/infrastructure.html#safe-passing-of-structured-data">由HTML5规范定义</a>的用于复制复杂JavaScript对象的算法。通过来自 <a href="https://developer.mozilla.org/en-US/docs/Web/API/Worker">Workers</a>的 <code><a href="https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage" title="en/JavaScript/Reference/Global Objects/Error">postMessage()</a> </code>或使用 <a href="https://developer.mozilla.org/en-US/docs/Glossary/IndexedDB">IndexedDB</a> 存储对象时在内部使用。它通过递归输入对象来构建克隆,同时保持先前访问过的引用的映射,以避免无限遍历循环。</p>