arguments 是一個類數組對象。表明傳給一個function的參數列表。數組
function a() { console.log(arguments); } a("A", "b", 1);
輸出安全
["A", "b", 1]
arguments.callee 指向當前執行的函數。函數
arguments.callee
遞歸中經常使用,避免函數修改後出錯,提升代碼的安全性、穩定性。code
arguments.length
arguments.caller指向調用當前函數的函數。對象
arguments.caller