jQuery override $.post function

前端 未结 2 1963
故里飘歌
故里飘歌 2021-01-19 07:11

First of all I apologize for my poor english... Hope someone will understand my question and help me...

I\'m working on a project using lots of $.post call and I wan

2条回答
  •  滥情空心
    2021-01-19 07:58

    $.post = function() {
      var _method = $.post;
      // do something you want
      console.log("do someting");
      return _method.apply($, Array.prototype.slice.apply(arguments));
    }
    

提交回复
热议问题