Eliminate 404 url error in console?

前端 未结 4 1818
长情又很酷
长情又很酷 2020-12-19 02:20

I try to eleminate an 404 error occuring because the source (src) is missing..

var $chart = $(\"\")
    .addClass(\"trend-pic\")
    .error(func         


        
4条回答
  •  天命终不由人
    2020-12-19 03:00

    You can't really delete those 404 errors from the console. The best you can do is make some ajax calls and see the return code, but then you'll be limited to request only to your own domain.

    EDIT--

    Oh, and yes, those errors will keep showing in the "Requests" tab! They just won't appear in the "Console" tab (in Chrome).

提交回复
热议问题