javascript 在 Internet Explorer 中查看 ajax 请求?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10907302/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
View ajax requests in internet explorer?
提问by Click Upvote
Is there a way to view the ongoing ajax requests in internet explorer like firebug in google chrome and firefox allows you to see?
有没有办法在 Internet Explorer 中查看正在进行的 ajax 请求,例如 google chrome 中的 firebug 和 firefox 允许您查看?
For some reason my IE is getting stuck on an ajax request, it starts the request but the loading message I put in never goes away, leaving me clueless as to what happened, whether the request failed and if so, why. The same request works in FF and chrome.
出于某种原因,我的 IE 卡在了一个 ajax 请求上,它启动了请求,但我输入的加载消息永远不会消失,让我不知道发生了什么,请求是否失败,如果失败,为什么。相同的请求适用于 FF 和 chrome。
采纳答案by Raab
Press F12
if you are using IE8 or up or install firebug for IE.
F12
如果您使用的是 IE8 或更高版本,请按或为 IE 安装 firebug。
or install
或安装
回答by Jason Kulatunga
If you're using IE9, you should definitely be using the Developer tools. If you're using an earlier version of IE, try the Firebug Litebookmarklet
如果您使用的是 IE9,那么您绝对应该使用开发人员工具。如果您使用的是早期版本的 IE,请尝试使用Firebug Lite书签
You wont see network requests, but it does give you access to the console.log()
您不会看到网络请求,但它确实让您可以访问 console.log()
javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?Fi+'NS':Fi;Er;Er;Er;(Fe[0]||Fe[0]).appendChild(E);E=new%20Image;Er;})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened');
javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F. documentElement.namespaceURI;E=E?Fi+'NS':Fi;Er;Er;Er;(Fe[0]||Fe[0]).appendChild(E);E=new%20Image;Er;})( document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https:// /getfirebug.com/','#startOpened');
Just paste that string into the address bar in IE after you've loaded your page.
加载页面后,只需将该字符串粘贴到 IE 中的地址栏中即可。