jntitor
V2EX  ›  问与答

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

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

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

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