You can use the following: function colorTrace(msg, color) { console.log("%c" + msg, "color:" + color + ";font-weight:bold;"); } colorTrace("Test Me", ...
確定! 回上一頁