aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn
diff options
context:
space:
mode:
authorMr. Míng <minglq.9@gmail.com>2022-02-18 12:59:22 +0800
committerGitHub <noreply@github.com>2022-02-18 12:59:22 +0800
commit375de05f54b71d1d07659e95f74b9639baf922f2 (patch)
tree529f8d4c4c0d458dd079be65251ae44abe4f5b8a /files/zh-cn
parent177052e69595330579f7b0ee80caabb1ec54d2d9 (diff)
downloadtranslated-content-375de05f54b71d1d07659e95f74b9639baf922f2.tar.gz
translated-content-375de05f54b71d1d07659e95f74b9639baf922f2.tar.bz2
translated-content-375de05f54b71d1d07659e95f74b9639baf922f2.zip
beautify doc, added some whitespaces (#4184)
Diffstat (limited to 'files/zh-cn')
-rw-r--r--files/zh-cn/web/api/window/sessionstorage/index.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/files/zh-cn/web/api/window/sessionstorage/index.html b/files/zh-cn/web/api/window/sessionstorage/index.html
index d11bc0497a..1f0dfc04e0 100644
--- a/files/zh-cn/web/api/window/sessionstorage/index.html
+++ b/files/zh-cn/web/api/window/sessionstorage/index.html
@@ -17,15 +17,15 @@ translation_of: Web/API/Window/sessionStorage
<ul>
<li>页面会话在浏览器打开期间一直保持,并且重新加载或恢复页面仍会保持原来的页面会话。</li>
<li><strong>在新标签或窗口打开一个页面时会复制顶级浏览会话的上下文作为新会话的上下文,</strong>这点和 session cookies 的运行方式不同。</li>
- <li>打开多个相同的URL的Tabs页面,会创建各自的<code>sessionStorage</code>。</li>
- <li>关闭对应浏览器窗口(Window)/ tab,会清除对应的<code>sessionStorage</code>。 </li>
+ <li>打开多个相同的 URL 的 Tabs 页面,会创建各自的 <code>sessionStorage</code>。</li>
+ <li>关闭对应浏览器标签或窗口,会清除对应的 <code>sessionStorage</code>。 </li>
</ul>
<div class="blockIndicator note">
-<p>应该注意,存储在sessionStorage或localStorage中的数据<strong>特定于页面的协议</strong>。也就<br>
- 是说<code><strong>http</strong>://example.com</code> 与 <code><strong>https</strong>://example.com</code>的sessionStorage相互隔离。</p>
+<p>应该注意,存储在 sessionStorage 或 localStorage 中的数据<strong>特定于页面的协议</strong>。也就<br>
+ 是说 <code><strong>http</strong>://example.com</code> 与 <code><strong>https</strong>://example.com</code> 的 sessionStorage 相互隔离。</p>
-<p>被存储的键值对总是以UTF-16 <a href="/zh-CN/docs/Web/API/DOMString">DOMString</a> 的格式所存储,其使用两个字节来表示一个字符。对于对象、整数key值会自动转换成字符串形式。</p>
+<p>被存储的键值对总是以 UTF-16 <a href="/zh-CN/docs/Web/API/DOMString">DOMString</a> 的格式所存储,其使用两个字节来表示一个字符。对于对象、整数 key 值会自动转换成字符串形式。</p>
</div>
<h2 id="语法">语法</h2>
@@ -74,7 +74,7 @@ field.addEventListener("change", function() {
</pre>
<div class="note">
-<p><strong>备注:</strong>完整的使用示例可以查看<a href="/zh-CN/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API">使用 Web Storage API</a>一文。</p>
+<p><strong>备注:</strong>完整的使用示例可以查看<a href="/zh-CN/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API">使用 Web Storage API</a> 一文。</p>
</div>
<h2 id="规范">规范</h2>
@@ -102,7 +102,7 @@ field.addEventListener("change", function() {
<div id="compat-mobile"></div>
<div class="note">
-<p><strong>Note: </strong>从iOS 5.1之后,移动端的Safari将localStorage数据存储在cache文件中,在操作系统的要求下,会偶尔进行清除,特别是空间不足时。</p>
+<p><strong>Note: </strong>从 iOS 5.1 之后,移动端的 Safari 将 localStorage 数据存储在 cache 文件中,在操作系统的要求下,会偶尔进行清除,特别是空间不足时。</p>
</div>
<h2 id="相关链接">相关链接</h2>