没有人知道如何工作的obj.attachEvent在IE浏览器?
does anyone know how works the obj.attachEvent on ie?
我试了几个例子,但他们不工作。还与IE7这兼容吗?
I tried a few examples but they don't work. Also is this compatible with ie7?
我的尝试是这样的:
var onload = function( ) {
console.log("intercepting: " + this.status + " " + this.responseText);
};
if($.browser.msie){
console.log("it's IE...");
this.attachEvent("load", onload);
}
以上所有内部的XMLHtp prequest。
All above inside an XMLHtppRequest.
您可能要分配的功能 xhrObject.onreadystatechange
。