简体   繁体   English

检测 javascript 在 IE9 中调用 AJAX 的内容

[英]detect what javascript made an AJAX call in IE9

I am working on an enterprise web site that runs on IE only.我正在开发一个仅在 IE 上运行的企业 web 站点。 Some times some script makes an AJAX call to the server.有时,某些脚本会向服务器发出 AJAX 调用。 I need to find the javascript code that makes this request.我需要找到发出此请求的 javascript 代码。 How can I do it in IE9?我如何在 IE9 中做到这一点? The code executes by itself so I think that I should either manually find where it is called (the unpreferred way) or find out the place in the code based on some network trace.代码自行执行,所以我认为我应该手动找到它被调用的位置(不推荐的方式),或者根据一些网络跟踪找出代码中的位置。 But I couldn't find any references of the javascript in the network trace.但我在网络跟踪中找不到 javascript 的任何引用。

IE 8+ has a built-in developer toolbar with a profiler you can use to monitor scripts. IE 8+ 有一个内置的开发人员工具栏,其中包含一个可用于监视脚本的分析器 You can access it by hitting [ F12 ], select the |您可以通过点击 [ F12 ]、select | 来访问它。 Profiler | Profiler | Tab and then press start .选项卡,然后按开始

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM