V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jntitor
V2EX  ›  问与答

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

  •  
  •   jntitor · Oct 8, 2019 · 3403 views
    This topic created in 2404 days ago, the information mentioned may be changed or developed.

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

    4 replies    2019-10-09 00:31:47 +08:00
    whypool
        1
    whypool  
       Oct 8, 2019
    chrome devTools 自带
    jntitor
        2
    jntitor  
    OP
       Oct 8, 2019
    @whypool 查看单页面应用时候 Elements 里并不是“源代码” sources 里也是压缩成一行的 html
    gIrl1990
        3
    gIrl1990  
       Oct 9, 2019
    chrome devTools 左下角 (可能不在最左下角) 的 {} 点一下,那是格式化按钮。
    gIrl1990
        4
    gIrl1990  
       Oct 9, 2019
    - 你是想问在类似 view-source:https://www.v2ex.com/t/607144 页格式化源码是吗? 这个不知道
    - 可以在 chrome devTools Network 的 response 里 或者 Sources 里 格式化看
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   967 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 21:18 · PVG 05:18 · LAX 14:18 · JFK 17:18
    ♥ Do have faith in what you're doing.