![](/img/trans.png)
[英]Way to figure out the flow of javascript function with the help of firebug or IE 8 debugger or chrome debugger?
[英]Firebug / Chrome debugger inside 1-line function
这个问题完全出于我自己的好奇心。 因此,Angular(可能还有其他框架)中有很多方法是在一行上匿名定义的。 例如(取自angular-route.js):
$http.get(templateUrl, {cache: $templateCache}).
then(function(response) { return response.data; })
我想在promise回调中设置一个断点,并检查当时的response
。 就目前而言,我只是暂时在源代码上进行黑客入侵,这并不理想。
我知道这是一个奇怪的请求,而且我几乎可以确定UI并未提供该请求。 但是你永远不知道。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.