From 656f5d2f0dae82bc66f2c22172c65b36cf68f6cc Mon Sep 17 00:00:00 2001 From: SKY ZHAO Date: Fri, 2 Apr 2021 09:42:24 +0800 Subject: Update index.html Correct some sentence --- files/zh-cn/web/javascript/reference/operators/void/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web/javascript/reference') 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

JavaScript URIs

-

当用户点击一个以 javascript: URI 时,它会执行URI中的代码,然后用返回的值替换页面内容,除非返回的值是{{jsxref("Global_Objects/undefined", "undefined")}}。void运算符可用于返回{{jsxref("Global_Objects/undefined", "undefined")}}。例如:

+

当用户点击一个以 javascript: 开头的URI 时,它会执行URI中的代码,然后用返回的值替换页面内容,除非返回的值是{{jsxref("Global_Objects/undefined", "undefined")}}。void运算符可用于返回{{jsxref("Global_Objects/undefined", "undefined")}}。例如:

<a href="javascript:void(0);">
   这个链接点击之后不会做任何事情,如果去掉 void(),
-- 
cgit v1.2.3-54-g00ecf