mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-16 07:51:52 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -9,15 +9,15 @@
|
||||
else
|
||||
console.log(whoCalled.caller + ' called me!');
|
||||
}
|
||||
</pre>
|
||||
</code></pre>
|
||||
<h3 id="Examples" name="Examples">示例</h3>
|
||||
<p>下例演示了<code>arguments.caller</code>属性的作用.</p>
|
||||
<pre class="brush: js example-bad">function whoCalled() {
|
||||
<pre><code class="language-js example-bad">function whoCalled() {
|
||||
if (arguments.caller == null)
|
||||
console.log('该函数在全局作用域内被调用.');
|
||||
else
|
||||
console.log(arguments.caller + '调用了我!');
|
||||
}</pre>
|
||||
}</code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<p>无相关标准。JavaScript 1.1 实现,{{bug(7224)}} 移除 caller,因为潜在的不安全性。</p>
|
||||
<h2 id="浏览器支持">浏览器支持</h2>
|
||||
|
||||
Reference in New Issue
Block a user