阅读 https://github.com/Modernizr/Modernizr/blob/master/modernizr.js#L198
这是什么意思:
// When using `setAttribute`, IE skips "unload", WebKit skips "unload" and "resize", whereas `in` "catches" those
var isSupported = eventName in element;
阅读 https://github.com/Modernizr/Modernizr/blob/master/modernizr.js#L198
这是什么意思:
// When using `setAttribute`, IE skips "unload", WebKit skips "unload" and "resize", whereas `in` "catches" those
var isSupported = eventName in element;