我必须在下面的方法中使用bind()。我只想支持IE10及以上版本。有人可以验证bind()在IE10中是否受支持吗?
// Verify console exists
...
if (window.console) {
logger = window.console.log.bind(window.console);
// bind needed for Safari but not FF, possible IE issue?
} else {
return false; // window.console not available, silent fail
}
...