From 012ee621791b6895e637f96e6523027951768f25 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:03:27 +0800 Subject: remove inline style for zh-CN --- .../javascript/reference/global_objects/function/call/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects/function/call') diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/call/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/call/index.html index 5b9fc87b48..5962c181a0 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/function/call/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/function/call/index.html @@ -101,7 +101,7 @@ var obj = { greet.call(obj); // cats typically sleep between 12 and 16 hours -

使用 call 方法调用函数并且不指定第一个参数(argument

+

使用 call 方法调用函数并且不指定第一个参数(argument

在下面的例子中,我们调用了 display 方法,但并没有传递它的第一个参数。如果没有传递第一个参数,this 的值将会被绑定为全局对象。

@@ -127,7 +127,7 @@ function display() { display.call(); // Cannot read the property of 'sData' of undefined -

规范

+

规范

@@ -165,7 +165,7 @@ display.call(); // Cannot read the property of 'sData' of undefined

{{Compat("javascript.builtins.Function.call")}}

-

相关链接

+

相关链接