AJAX请求到达服务器的每一页,我无法找到原来的AJAX调用源服务器、AJAX

2023-09-10 18:59:25 作者:生死豪情

某处在我成千上万的JavaScript线,正在取得一个Ajax调用。我不能为我的生活弄清楚它是从哪里来的。这似乎是一个页面加载后发生的权利。

Somewhere in my thousands of lines of javascript, an ajax call is being made. I cannot for the life of me figure out where it is coming from. It seems to happen right after a page loads.

我可以在正在取得Ajax调用萤火虫看到。 AJAX调用总是请求当前页面。因此,举例来说,一旦用户#新荷载,它要求用户#new.js ,也做了同样的与其他所有的控制器和动作。

I can see in firebug that the ajax call is being made. The ajax call always requests the current page. So, for example, once users#new loads, it asks for users#new.js and also does the same with every other controller and action.

有没有一种方法可以让我确定在code这是从叫什么名字?

Is there a way I can determine where in the code it is being called from?

推荐答案

在一个时间我重新写我的ajax设置功能,某些时候。

At some point in time I re-wrote my ajax setup function.

$阿贾克斯= $ .ajaxSetup,很明显:!)

$.ajax != $.ajaxSetup, obviously :)