Created
September 15, 2014 10:30
-
-
Save lelinhtinh/79a8dab6b175d9bca03e to your computer and use it in GitHub Desktop.
Tô màu cho nội dung console.log
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
// http://stackoverflow.com/a/10769621 | |
function colorTrace(msg, color) { | |
console.log("%c" + msg, "color:" + color + ";font-weight:bold;"); | |
} | |
colorTrace("Test Me", "red"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment