例1: function a() {
console.log(a.caller) } function b() {
a(); //b函数 } b();
例2: function a() {
console.log(a.caller) } a(); //null
callee
function a() {
console.log(1); return arguments.callee; // a函数; } var b = a(); b();
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/206123.html原文链接:https://javaforall.net
