Created
May 28, 2012 14:38
-
-
Save ojimac/2819484 to your computer and use it in GitHub Desktop.
クロスブラウザ対応ログ関数 - JavaScript Ninjaより
This file contains 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
function log() { | |
try { | |
console.log.apply(console, arguments); | |
} | |
catch(e) { | |
try { | |
opera.postError.apply(opera, arguments); | |
} | |
catch(e) { | |
alert(Array.prototype.join.call( arguments, " ")); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment