typeof(callback) == 'function'
if (jQuery.typeOf(key) === 'string') {image = new Image();image.src = key;callback = arg[key];if (jQuery.typeOf(callback) === 'function') { image.onload = callback;} images.push(image);}
参考:http://pastebin.com/H9xQW1Bs