aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web
diff options
context:
space:
mode:
authorBenno-Wu <55138460+Benno-Wu@users.noreply.github.com>2021-07-29 00:20:50 +0800
committerGitHub <noreply@github.com>2021-07-29 00:20:50 +0800
commit43a2fc260b557fa0f6f2a3c1d9da94d61fa9b732 (patch)
treea5d19b2311257167c13b32fb90c9a2c2f74e94d9 /files/zh-cn/web
parent5e8651025a269c4cbd4cc40a2eeab241c1b2dc17 (diff)
downloadtranslated-content-43a2fc260b557fa0f6f2a3c1d9da94d61fa9b732.tar.gz
translated-content-43a2fc260b557fa0f6f2a3c1d9da94d61fa9b732.tar.bz2
translated-content-43a2fc260b557fa0f6f2a3c1d9da94d61fa9b732.zip
fix error Web/API/History/replaceState, zh-CN (#1759)
Diffstat (limited to 'files/zh-cn/web')
-rw-r--r--files/zh-cn/web/api/history/replacestate/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/history/replacestate/index.html b/files/zh-cn/web/api/history/replacestate/index.html
index e2ff2e1311..65e7697124 100644
--- a/files/zh-cn/web/api/history/replacestate/index.html
+++ b/files/zh-cn/web/api/history/replacestate/index.html
@@ -33,7 +33,7 @@ history<span class="punctuation token">.</span><span class="function token">push
<pre class="brush: js line-numbers language-js"><code class="language-js">history<span class="punctuation token">.</span><span class="function token">replaceState</span><span class="punctuation token">(</span>stateObj<span class="punctuation token">,</span> <span class="string token">""</span><span class="punctuation token">,</span> <span class="string token">"bar2.html"</span><span class="punctuation token">)</span><span class="punctuation token">;</span></code></pre>
-<p>这会让URL栏显示 <span class="nowiki">http://mozilla.org/bar2.html</span>, 但是不会刷新 <code>bar2.html</code>  页面 甚至不会检查bar2.html 是否存在</p>
+<p>这会让URL栏显示 <span class="nowiki">http://mozilla.org/bar2.html</span>, 但是不会加载 <code>bar2.html</code> 页面,甚至不会检查bar2.html 是否存在</p>
<p>假设用户跳转到 <span class="nowiki">http://www.microsoft.com</span>, 然后点击返回按钮.这时, URL 栏将会显示 <span class="nowiki">http://mozilla.org/bar2.html 页面. 如果用户此时点击返回按钮, URL栏将会显示 http://mozilla.org/foo.html 页面, 最终绕过了 bar.html 页面.</span></p>