Object.prototype.attachEvent=function(method,func)
        {
        if(!this[method])
        this[method]=func;
        else
        this[method]=this[method].attach(func);
        }


        Function.prototype.attach=function(func){
        var f=this;
        return function(){
        f();
        func();
        }
        }

相关文章:

  • 2022-12-23
  • 2022-03-06
  • 2022-02-12
  • 2022-12-23
  • 2021-10-27
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
相关资源
相似解决方案