Function.prototype.createCallback = function () ... { var args = arguments; var method = this; return function() ...{ return method.apply(window, args); };} ;给Function加一个方法,它的作用是:打个比方, var Exx = function () ... {} var cc = Exx.createCallback();这样就把Exx方法加载倒了window对象中。。。。