更新时间:2023-09-17 16:37:16
你曾经能够做 arguments.caller.name
,但这是在Javascript 1.3中弃用。
You used to be able to do arguments.caller.name
, but this is deprecated in Javascript 1.3.
arguments.callee.caller.name
(或只是 showMe.caller.name
)是另一种方式。这是所有主流浏览器中的非标准,但目前支持 。
arguments.callee.caller.name
(or just showMe.caller.name
) is another way to go. This is non-standard, but currently supported in all major browsers.