jQuery lambda functions

一世执手 提交于 2019-12-24 01:57:20

问题


jQuery uses lambda functions extensively wherever a function is to be passed into another function. But Visual Studio 2008 would not honor break points that are set inside a JavaScript lambda function. Anybody knows any workaround for this other than giving an explicit name for the function and passing this to the jQuery functions?


回答1:


try using Firebug.




回答2:


Put debugger statement into your function.

$.get('http://...').on('data', 
    function(data) {
        debugger;
    }
);


来源:https://stackoverflow.com/questions/1667841/jquery-lambda-functions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!