console.log.apply(console, ["\n%c %c 芋圆社区 v" + "3.0.9" + " ✨\n",
`background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAACXBIWXMAAAsSAAALEgHS3X78AAANu0lEQVRoQ91aaXBd5Xl+3nPuOecu2per5WqxLWPLxkZgg8UqiZpips0y2WbalEn7Ky2kQwAZaKZpapopTQbL02FKmUKbhIRQwE1YEpzWGWJJXrCNhGPhVTbWvutKuvs5dzlf5z2SLF1LuveK6le/mftDuud+3/ucd3/ej/D/ZNFa4XixCVmhhG2njaT7TJCHgDKAygShnM8ggWFAjAhgRIIYEmQej8fjHc8cR2AtZPg/AfnBPfYq2ZbYLUG6SwD1gPAQSCNAEoCMhQ/LmuAPAQkBmARhADQBiA4TdFom21FhhC4/+SEinwXYZwKyv0mtJSF9DQIPgcRNABxzHxZ+dhFgUxRoriw4XFkI+n0wAgEIIRbkFDAB6EQiIkBjEDgiQG8Ju9751GGEVgNoVUAONKjbTZK+RMAfAqIWQA4AlQ9koXOKi5BbXoLsoiLYXS4odg2SJMNTUg3TTMCMxxGNGggH/JgYHET/pYvwTU7CTLCyWFMiSKABENpgJl4PtMdP7oMFNu3KGMj++7U9JPAITNwFIA8E1aaqlvAFlR7kFhfBkZsDm6bCpqiQZAkkSSAQyt1VUGyKJYxpmkgk4ojpOvRwGP7pKQxf+xS9584hMD01Z4LCD6IugH4SgP5f+1oRTIckIyDPN6hfl4j+CsBtALIUTUOOuxjF66tRUFEOzeGwAEjygmUtHMxAKhn1srIk4nFEQkFMT4xjsLsbvRfOwe/18rM6gGsC4ueg6Mt7WzGZCkxaIAeatL8WAt8EsAmAll1UiPLNN1lacGRnQbHb07ys1EDmf8zmFQ4EMDbYj0sfncbQlW72Jw4MIxLhTSlGLzx+XO9f6bCUQFoatL8E4dsEbOIoxFqo3LYF7vXroDrZvzNZmQGZ3ykWi8I7MozLnZ3oPX8OesiyqjEQ/YQM/dmVotqKQFoatD8CxN+DaAf7M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JPEoAQ3WeBqw8TB0drLrsbpKNjee7i4GdeN4mo9jboqrWCOiWzP3yZFha8Q2PtCPRCzOw6oACJ2C6FUZ+rtPtGImnZhpNbJ4g5Z7lTohyX9CJB6EwEYQuNAi9h8mvPPKSq0Zoys/F+D5h9UWS6jy1FhUEk9uedYRNXT4vF6M9vag7+IFDquzxwiEQRgXRG2SwH986NZPHDxoXf1Iu1YFZC6i2Z3Cfocs8Ocg8QCAQs43rKH500iWoCjK9csDJevWI6pHEPH5rRm6EYksvsrBgvJ8MASBEyDxc0HRI+nm6hlHrXSv4J/uRb4qaXyZ5vNE2CUgqvlCzdyVDnnuYk3SiyKLvrCuZPDlmqhFeRKNgsQZmcRhk2wfzNdO6c5fMyCLN2I233DYdkiQmmDSXXy1iUAlgGBg8zShCZAhIMb4yhNBnAboKEmO00+0zqT1gXTAVm1a6Tac/54rhLx6V3FUjXr4f2pUHZo5FZrI9JJMpufMP/e/mZ6w2/w/zWYAAAAASUVORK5CYII=') no-repeat; padding:1px 1px;background-size: 100% 100%;background-position: center;`, "color: #90430a;padding:5px 0;",]);
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script src="./console.js"></script>
<script src="./index.js"></script>
</head>
<body></body>
</html>
const logN = {};
const logC = {};
const logB = {};
const CONSOLE_LOG_TYPE = {
primary: "#50b5ff",
success: "#19be6b",
default: "#a09e9e",
info: "#d592ff",
warning: "#ff9900",
danger: "#ff4729",
};
const createLogN = (color, ns, msg, ...args) => [`%c ${ns} %c ${msg} %c ${args.length ? "%o" : ""}`, `background:${color};border:1px solid ${color}; padding: 1px; border-radius: 4px 0 0 4px; color: #fff;`, `border:1px solid ${color}; padding: 1px; border-radius: 0 4px 4px 0; color: ${color};`, "background:transparent", ...args];
const createLogC = (color, msg, ...args) => [`%c ${msg} ${args.length ? "%o" : ""}`, `color: ${color};`, ...args];
const createLogB = (color, msg, ...args) => [`%c ${msg} ${args.length ? "%o" : ""}`, `background:${color}; padding: 2px; margin-right: 5px; border-radius: 4px; color: #fff;`, ...args];
Object.keys(CONSOLE_LOG_TYPE).map((type) => {
const color = CONSOLE_LOG_TYPE[type];
logN[type] = (ns, msg, ...args) => createLogN(color, ns, msg, ...args);
logC[type] = (msg, ...args) => createLogC(color, msg, ...args);
logB[type] = (msg, ...args) => createLogB(color, msg, ...args);
});
const obj = {
name: "Taro",
url: "www.inhami.com",
};
console.log(...logC.primary("Taro", obj));
console.log(...logC.success("Taro", obj));
console.log(...logC.default("Taro", obj));
console.log(...logC.info("Taro", obj));
console.log(...logC.warning("Taro", obj));
console.log(...logC.danger("Taro", obj));
console.log(...logN.success("v3.0.9", "Taro", obj));
console.log(...logN.default("v3.0.9", "Taro", obj));
console.log(...logN.info("v3.0.9", "Taro", obj));
console.log(...logN.warning("v3.0.9", "Taro", obj));
console.log(...logN.danger("v3.0.9", "Taro", obj));
console.log(...logN.primary("v3.0.9", "Taro", obj));
console.log(...logB.success("Taro", obj));
console.log(...logB.default("Taro", obj));
console.log(...logB.warning("Taro", obj));
console.log(...logB.info("Taro", obj));
console.log(...logB.danger("Taro", obj));
console.log(...logB.primary("Taro", obj));
console.log()
console.log(...logN.success("v3.0.9", "Taro", obj));
{
"console.log normal": {
"prefix": "logn",
"body": ["console.log(...logN.primary('$1', '$2', ${3}));"],
"description": "vue3 ts snippet"
},
"console.log color change": {
"prefix": "logc",
"body": ["console.log(...logC.primary('$1', ${2}));"],
"description": "vue3 ts snippet"
},
"console.log background-color change": {
"prefix": "logb",
"body": ["console.log(...logB.primary('$1', ${2}));"],
"description": "vue3 ts snippet"
},
}
此页面不支持夜间模式!
已进入夜间模式!
已进入普通模式!
搜索框不允许为空
签到成功!经验+5!芋圆币+2!
签到失败!今日已签到!
需要登录社区账号才可以进入!