IE中的ajax调用使页面速度越来越慢
我用一些ajaxcalls构建了一个应用程序,问题是当页面处于例如1的活动状态时,页面在IE 9、10和11中变得越来越慢。所有其他浏览器都可以IE中的ajax调用使页面速度越来越慢,ajax,json,internet-explorer,Ajax,Json,Internet Explorer,我用一些ajaxcalls构建了一个应用程序,问题是当页面处于例如1的活动状态时,页面在IE 9、10和11中变得越来越慢。所有其他浏览器都可以 data = get_xml('/".AREA."/index.php?ajax=ajaxStatusses&location=index'); data = JSON.parse(data); var xmlhttp; if (window.XMLHttpRequest){ // code for IE7+, Firefox, Ch
data = get_xml('/".AREA."/index.php?ajax=ajaxStatusses&location=index');
data = JSON.parse(data);
var xmlhttp;
if (window.XMLHttpRequest){
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}else{
// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET", url, false);
xmlhttp.send(null);
if (xmlhttp && xmlhttp.responseText){
return xmlhttp.responseText;
}else{
return '';
}
您是否在开发人员工具中进行过分析?内存和脚本?如果是这样的话,你能看到调用了什么函数或内存泄漏吗?@ChrisLove,也许是个愚蠢的问题,但我怎么能看到是否有泄漏?