aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/functions
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 21:46:22 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 21:46:22 -0500
commita065e04d529da1d847b5062a12c46d916408bf32 (patch)
treefe0f8bcec1ff39a3c499a2708222dcf15224ff70 /files/zh-cn/web/javascript/reference/functions
parent218934fa2ed1c702a6d3923d2aa2cc6b43c48684 (diff)
downloadtranslated-content-a065e04d529da1d847b5062a12c46d916408bf32.tar.gz
translated-content-a065e04d529da1d847b5062a12c46d916408bf32.tar.bz2
translated-content-a065e04d529da1d847b5062a12c46d916408bf32.zip
update based on https://github.com/mdn/yari/issues/2028
Diffstat (limited to 'files/zh-cn/web/javascript/reference/functions')
-rw-r--r--files/zh-cn/web/javascript/reference/functions/arguments/caller/index.html47
1 files changed, 0 insertions, 47 deletions
diff --git a/files/zh-cn/web/javascript/reference/functions/arguments/caller/index.html b/files/zh-cn/web/javascript/reference/functions/arguments/caller/index.html
deleted file mode 100644
index 13128ec962..0000000000
--- a/files/zh-cn/web/javascript/reference/functions/arguments/caller/index.html
+++ /dev/null
@@ -1,47 +0,0 @@
----
-title: caller
-slug: Web/JavaScript/Reference/Functions/arguments/caller
-translation_of: Archive/Web/JavaScript/arguments.caller
----
-<p>{{jsSidebar("Functions")}}</p>
-
-<p><code><font face="Open Sans, Arial, sans-serif">废弃的 </font><strong>arguments.caller</strong></code> 属性原先用在函数执行的时候调用自身。本属性已被移除且不再有用。</p>
-
-<h2 id="描述">描述</h2>
-
-<p><code>arguments.caller 已经不可使用了,但是你还可以使用</code> {{jsxref("Function.caller")}}。</p>
-
-<pre>function whoCalled() {
- if (whoCalled.caller == null)
- console.log('I was called from the global scope.');
- else
- console.log(whoCalled.caller + ' called me!');
-}
-</pre>
-
-<h3 id="Examples" name="Examples">示例</h3>
-
-<p>下例演示了<code>arguments.caller</code>属性的作用.</p>
-
-<pre class="brush: js example-bad">function whoCalled() {
-   if (arguments.caller == null)
-      console.log('该函数在全局作用域内被调用.');
-   else
-      console.log(arguments.caller + '调用了我!');
-}</pre>
-
-<h2 id="规范">规范</h2>
-
-<p>无相关标准。JavaScript 1.1 实现,{{bug(7224)}} 移除 caller,因为潜在的不安全性。</p>
-
-<h2 id="浏览器支持">浏览器支持</h2>
-
-
-
-<p>{{Compat("javascript.functions.arguments.caller")}}</p>
-
-<h2 id="相关链接">相关链接</h2>
-
-<ul>
- <li>{{jsxref("Function")}}</li>
-</ul>