function test(){console.log(arguments);} test('a', 'hoge'); function test2(){console.log(arguments.callee);} test2('a', 'hoge');
結果
["a", "hoge"] test2()
calleeプロパティは再帰呼び出し可能な匿名関数を定義するときに使える
広告:本ブログで紹介している書籍等商品の紹介でAmazonアソシエイトを利用していることがあります。
function test(){console.log(arguments);} test('a', 'hoge'); function test2(){console.log(arguments.callee);} test2('a', 'hoge');
結果
["a", "hoge"] test2()
calleeプロパティは再帰呼び出し可能な匿名関数を定義するときに使える