鍍金池/ 問答/HTML/ 無法獲取arguments.callee.caller.arguments[0]

無法獲取arguments.callee.caller.arguments[0] 值的問題

請問大家,下面是我看到的一段代碼,關于用冒泡代替閉包綁定事件的,為什么我var _event = arguments.callee.caller.arguments[0]; 的值

var apply = function() {
  this.div = document.getElementById("div的id");
  this.div.onclick = function(me) {
    return function() {
      var _event = arguments.callee.caller.arguments[0];
      var target = _event.target || _event.srcElement;
      if(target.tagName == "a")
        me.edit(target);
      else
        return false;
    }
  }(this);
}
apply.prototype = {
  edit: function(target) {
  }
}
new apply();
回答
編輯回答
淺淺

你的arguments指向returnfunction了吧?
還有盡量不要用arguments了,嚴格模式下報錯。

2017年9月25日 02:14