开发者

Identifying javascript functions which effect selected html elements

I am trying to figure out which javascript functions are changing specified html开发者_运维知识库 elements. I have a whole bunch of javascript functions and all that I have deduced is that with javascript disabled the elements style differently.

Be there a firefox plugin of sorts?


There might be tools that does it... One possible way is to commenting out the several lines in various function that you suspect that does it. You can use binary search to find it: 4 lines commented out. And if that fixes the problem you know it is one of these 4 lines, then now you can commented out only 2 of those lines, etc. Then you can find the line that does it in O(log n) time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜