当你要调试的网页不在本地时,可以在需要调试的页面地址栏中,直接复制下方的代码,点击回车就可以了。
javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened');
如果你拥有对网页的修改权,那就更简单了。直接将下方的代码加到页面的最下方就可以了。
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>
javascript:(function(F,i,r,e,b,u,g,L,I,T,E){if(F.getElementById(b))return;E=F[i+'NS']&&F.documentElement.namespaceURI;E=E?F[i+'NS'](E,'script'):F[i]('script');E[r]('id',b);E[r]('src',I+g+T);E[r](b,u);(F[e]('head')[0]||F[e]('body')[0]).appendChild(E);E=new%20Image;E[r]('src',I+L);})(document,'createElement','setAttribute','getElementsByTagName','FirebugLite','4','firebug-lite.js','releases/lite/latest/skin/xp/sprite.png','https://getfirebug.com/','#startOpened');
如果你拥有对网页的修改权,那就更简单了。直接将下方的代码加到页面的最下方就可以了。
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script>
本文介绍如何在不拥有网页修改权限的情况下,通过直接复制并粘贴特定代码来实现网页调试的方法。对于拥有修改权限的情况,则提供了一种简易的代码注入方式。文章详细解释了使用这些技巧和代码的具体步骤,旨在帮助开发者更高效地进行网页调试。
741

被折叠的 条评论
为什么被折叠?



