是否可以通过 JavaScript 检查文件/页面是否存在,但是防止404错误显示在控制台中?
Seems like the answer is: No. Can't avoid getting a 404 error in the console unless you kick off a call to a server-side script to check file existence.