aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(),