(function() { var tmp = Function.prototype.call; Function.prototype.call = function() { console.log('hello'); tmp.apply(this, arguments); } })(); function test() { alert(1); } test.call();