javascript - There are many image paths in the website, but I can't find which file they are written in?
大家讲道理2017-06-12 09:20:39
0
4
601
There are many image path errors in my website, and when I click on them, I do not enter the imported page. Because the website is not made by myself, I want to know how to get the location where the error message is imported.
Image loading may be an image request loaded in CSS or Javascript. You can try to use image keywords to search in the CSS/JS files on the page, and you may be able to find the statement to load the image.
The URLs of the resources in the screenshots will be followed by %22. After decoding the URL, we found that it is an English double quotation mark, so we cannot rule out that this is the reason for the 404.
Open the developer tools in chrome, click the arrow icon to the left of the error in the console panel to view the call stack, or the network panel can also be used For example, this page
Open the IDE and search for keywords, such as banner5 and banner7.jpg above, and then locate the specific page (there may be more than one found)
Image loading may be an image request loaded in CSS or Javascript. You can try to use image keywords to search in the CSS/JS files on the page, and you may be able to find the statement to load the image.
The URLs of the resources in the screenshots will be followed by
%22
. After decoding the URL, we found that it is an English double quotation mark, so we cannot rule out that this is the reason for the 404.Open the developer tools in chrome, click the arrow icon to the left of the error in the console panel to view the call stack, or the network panel can also be used
For example, this page