jQuery lambda functions

2019-07-20 15:13发布

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?

2条回答
smile是对你的礼貌
2楼-- · 2019-07-20 15:30

Put debugger statement into your function.

$.get('http://...').on('data', 
    function(data) {
        debugger;
    }
);
查看更多
倾城 Initia
3楼-- · 2019-07-20 15:42

try using Firebug.

查看更多
登录 后发表回答