Skip to content

Instantly share code, notes, and snippets.

@hiroshineya
Created May 10, 2012 09:12
Show Gist options
  • Select an option

  • Save hiroshineya/2652039 to your computer and use it in GitHub Desktop.

Select an option

Save hiroshineya/2652039 to your computer and use it in GitHub Desktop.
Javascript ConsoleLog
// need jquery
function printLog(str) {
if(!$.browser.msie) {
console.log(str);
}
};
function printWarn(str) {
if(!$.browser.msie) {
console.warn(str);
}
};
function printError(str) {
if(!$.browser.msie) {
console.error(str);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment