Printing problem of window.onerror in chrome browser

window.onerror prints a problem in chrome browser

              url
            

clipboard.png

clipboard.png

clipboard.png

Edge

clipboard.png

ask all the great gods and seniors to give us some advice. Thank you. Thank you.
programmer, single dog, stay at home and read the code.

Apr.14,2021

(MDN) [ https://developer.mozilla.org.]

MDN explanation

matters needing attention

when syntax errors occur in scripts loaded from different domains, to avoid information disclosure (see bug 363897), details of syntax errors will not be reported and will be replaced by a simple "Script error.". In some browsers, this behavior can be overridden by using the crossorigin attribute in < script > and asking the server to send the appropriate CORS HTTP response header. One workaround is to deal with "Script error." separately, telling you that the error details can only be viewed through the browser console and cannot be accessed through JavaScript.


that's good upstairs

Menu