Friends

arguments.callee

arguments返回方法的参数数组,arguments.callee返回自己方法体

function addTime(date, content){
    console.log(arguments, arguments.callee);
}

addTime("2015-3-10", "时间");
// 打印出 ["2015-3-10", "时间"]           
Written on January 3, 2013