V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
colorsand
V2EX  ›  前端开发

chrome 中怎么定位“Failed to load resource”这种错误出现的具体位置?

  •  
  •   colorsand · 2015-07-27 10:28:02 +08:00 · 2967 次点击
    这是一个创建于 3202 天前的主题,其中的信息可能已经有所发展或是发生改变。

    chrome控制台中出现“Failed to load resource: the server responded with a status of 404 (Not Found)”这种错误的时候,有没有办法快速定位到出现问题的位置?有时候直接在源码中找不到相关资源。

    3 条回复    2015-07-27 11:27:56 +08:00
    kikyous
        1
    kikyous  
       2015-07-27 11:11:42 +08:00
    404 还不明确?
    airyland
        2
    airyland  
       2015-07-27 11:15:07 +08:00
    看network里的这个请求,可以看到这个请求是哪一行代码发出的。
    colorsand
        3
    colorsand  
    OP
       2015-07-27 11:27:56 +08:00
    多谢@airyland,有的 initiator下边 显示的是other
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2191 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:07 · PVG 18:07 · LAX 03:07 · JFK 06:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.