Created
January 11, 2013 00:27
-
-
Save shoyan/4506983 to your computer and use it in GitHub Desktop.
javascriptでエラーが起きたら補足してalertで表示してくれる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onerror = function(message, url, linenumber) { | |
alert("JavaScript error: " + message + " on line " + linenumber + " for " + url); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment