87,997
社区成员




function FuckIE(id){
var target=window.event?window.event.srcElement:event.target;
alert(target.innerHTML)//IE下为空,其他浏览器正常;在开发过程中,俺大部分时间去兼容传说中的IE了,心底的服了。
var httpAjax=Ajaxrequest();//请求
httpAjax.open("GET",url);
httpAjax.onreadystatechang=function(){
if(httpAjax.readyState==4){
if(httpAjax.status>=200)
$(id).innerHTML=httpAjax.responseText;//生成一个A标签<a onclick=FuckIE("ID")>我恨IE</A>
}
}
}