aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/glossary/serialization/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/glossary/serialization/index.html')
-rw-r--r--files/zh-cn/glossary/serialization/index.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/serialization/index.html b/files/zh-cn/glossary/serialization/index.html
new file mode 100644
index 0000000000..8405434f3e
--- /dev/null
+++ b/files/zh-cn/glossary/serialization/index.html
@@ -0,0 +1,23 @@
+---
+title: Serialize
+slug: Glossary/Serialize
+tags:
+ - Glossary
+ - JavaScript
+ - Serialize
+translation_of: Glossary/Serialization
+translation_of_original: Glossary/Serialize
+---
+<p>序列化(Serialization )意味着将 {{Glossary("object", "对象")}} 或某种其他类型的数据结构转换为可存储格式(例如,文件或 {{Glossary("buffer")}})。</p>
+
+<p>在 {{Glossary("JavaScript")}} 中,你可以通过调用 {{jsxref("JSON.stringify()")}} {{Glossary("function", "函数")}}将某个值序列化为 {{Glossary("JSON")}} 格式的 {{Glossary("string", "字符串")}}。</p>
+
+<p>{{Glossary("CSS")}} 值可以通过调用 {{domxref("CSSStyleDeclaration.getPropertyValue()")}} 函数来序列化。</p>
+
+<h2 id="了解更多">了解更多</h2>
+
+<h3 id="General_knowledge">General knowledge</h3>
+
+<ul>
+ <li><a href="https://en.wikipedia.org/wiki/Serialization">Serialization</a> on Wikipedia</li>
+</ul>