我试图在 IE7中调用.call函数原型方法。document.attachEvent但它显示为未定义。我也检查过typeof document.attachEvent,应该显示为function但它是object。有人可以解释为什么吗?
document.attachEvent.call(this, 'onclick', function () {});
收到此错误
Error: Object doesn't support this property or method