V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
jntitor
V2EX  ›  问与答

请问有浏览器插件可以改善查看网页源代码吗?

  •  
  •   jntitor · 2019-10-08 17:51:05 +08:00 · 2458 次点击
    这是一个创建于 1633 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,就像 json viewer 这种插件让 json 有缩进 ,这样的浏览器插件有吗?叫什么

    4 条回复    2019-10-09 00:31:47 +08:00
    whypool
        1
    whypool  
       2019-10-08 17:57:18 +08:00
    chrome devTools 自带
    jntitor
        2
    jntitor  
    OP
       2019-10-08 18:17:06 +08:00
    @whypool 查看单页面应用时候 Elements 里并不是“源代码” sources 里也是压缩成一行的 html
    gIrl1990
        3
    gIrl1990  
       2019-10-09 00:28:55 +08:00
    chrome devTools 左下角 (可能不在最左下角) 的 {} 点一下,那是格式化按钮。
    gIrl1990
        4
    gIrl1990  
       2019-10-09 00:31:47 +08:00
    - 你是想问在类似 view-source:https://www.v2ex.com/t/607144 页格式化源码是吗? 这个不知道
    - 可以在 chrome devTools Network 的 response 里 或者 Sources 里 格式化看
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4729 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:46 · PVG 17:46 · LAX 02:46 · JFK 05:46
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.