gpt4 book ai didi

javascript - IE8 开发者工具 Javascript 最小化

转载 作者:行者123 更新时间:2023-11-28 10:17:56 25 4
gpt4 key购买 nike

当我打开 IE8 开发人员工具(使用 F12),单击“脚本”,然后选择项目的 .js 文件时,显示的 Javascript 会被缩小。这使得调试几乎不可能。在研究中,我发现对“配置按钮”的引用会很好地打印 Javascript 源代码。不幸的是,我在 IE8 开发人员工具工具条或菜单中找不到该按钮。 XP SP3 TIA 格斯

最佳答案

不幸的是,这仅在 IE9 的开发人员工具中可用,在配置菜单中:enter image description here

MSDN article on Dev Tools in IE9

编辑:

最后一个选择可能是使用 FirebugLite,如果事实上 IE8 正在为您缩小 javascript,Firebug 不应该,您可以通过在书签中使用它来在 IE 中获取 FirebugLite:http://getfirebug.com/firebuglite

基本上你要做的就是在 IE 中创建一个书签(例如 firebuglite 网站),然后右键单击 -> 属性,并将 URL 更改为:

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');

当您单击书签时,页面底部应该会弹出 firebug

<小时/>

编辑:Firebug(包括 Lite)has a BSD license 。由于本答案中转载了源代码,因此应包含以下许可证:

Software License Agreement (BSD License)

Copyright (c) 2009, Mozilla Foundation All rights reserved.

Redistribution and use of this software in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of Mozilla Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Mozilla Foundation.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

关于javascript - IE8 开发者工具 Javascript 最小化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6203640/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com