function a(arg) { arguments.callee[‘fn‘ + arg] = !arguments.callee[‘fn‘ + arg]; console.log(arguments.callee[‘fn‘ + arg]); }
12. arguments.callee[name]代替定义开关变量
原文:http://www.cnblogs.com/zouxinping/p/7543636.html