aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/glossary/serialize
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/glossary/serialize
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/glossary/serialize')
-rw-r--r--files/zh-cn/glossary/serialize/index.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/files/zh-cn/glossary/serialize/index.html b/files/zh-cn/glossary/serialize/index.html
new file mode 100644
index 0000000000..d7ffde0a12
--- /dev/null
+++ b/files/zh-cn/glossary/serialize/index.html
@@ -0,0 +1,22 @@
+---
+title: Serialize
+slug: Glossary/Serialize
+tags:
+ - Glossary
+ - JavaScript
+ - Serialize
+translation_of: Glossary/Serialization
+---
+<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>