aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference
diff options
context:
space:
mode:
authorSKY ZHAO <boyzhaotian@hotmail.com>2021-04-02 09:42:24 +0800
committerIrvin <irvinfly@gmail.com>2021-04-14 18:12:53 +0800
commit656f5d2f0dae82bc66f2c22172c65b36cf68f6cc (patch)
tree582f66d3e7b3cc2d517b640c7ee54759cde7871a /files/zh-cn/web/javascript/reference
parent5c179884f4c6896e50980d3039250447c092026a (diff)
downloadtranslated-content-656f5d2f0dae82bc66f2c22172c65b36cf68f6cc.tar.gz
translated-content-656f5d2f0dae82bc66f2c22172c65b36cf68f6cc.tar.bz2
translated-content-656f5d2f0dae82bc66f2c22172c65b36cf68f6cc.zip
Update index.html
Correct some sentence
Diffstat (limited to 'files/zh-cn/web/javascript/reference')
-rw-r--r--files/zh-cn/web/javascript/reference/operators/void/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/reference/operators/void/index.html b/files/zh-cn/web/javascript/reference/operators/void/index.html
index b67110459a..459a36a057 100644
--- a/files/zh-cn/web/javascript/reference/operators/void/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/void/index.html
@@ -40,7 +40,7 @@ translation_of: Web/JavaScript/Reference/Operators/void
<h2 id="JavaScript_URIs">JavaScript URIs</h2>
-<p>当用户点击一个以 <code>javascript:</code> URI 时,它会执行URI中的代码,然后用返回的值替换页面内容,除非返回的值是{{jsxref("Global_Objects/undefined", "undefined")}}。<code>void</code>运算符可用于返回{{jsxref("Global_Objects/undefined", "undefined")}}。例如:</p>
+<p>当用户点击一个以 <code>javascript:</code> 开头的URI 时,它会执行URI中的代码,然后用返回的值替换页面内容,除非返回的值是{{jsxref("Global_Objects/undefined", "undefined")}}。<code>void</code>运算符可用于返回{{jsxref("Global_Objects/undefined", "undefined")}}。例如:</p>
<pre class="brush: html">&lt;a href="javascript:void(0);"&gt;
这个链接点击之后不会做任何事情,如果去掉 void(),