var shell = function (method) { window[method].apply(null, Array.prototype.slice.call(arguments, 1)); }; shell('alert', 'monkey!');
javascript global apply window-object
apply ×1
global ×1
javascript ×1
window-object ×1