效果图
废话不多说直接上代码
/**
* 控制台打印字符画
* @param stringTem
* @returns {String}
*/
function makeMulti (stringTem) {
let l = new String(stringTem || string)
l = l.substring(l.indexOf("/*") + 3, l.lastIndexOf("*/"))
return l
}
// 制作字符画网站 https://patorjk.com/software/taag/#p=display&f=Graffiti&t=Video%2B%2B
// 注意:你复制的字符画需要放在/* */中间
let string = function () {
/*
____ ____.__ .___
\ \ / /|__| __| _/____ ____ .__ .__
\ Y / | |/ __ |/ __ \/ _ \ __| |___ __| |___
\ / | / /_/ \ ___( < > ) /__ __/ /__ __/
\___/ |__\____ |\___ >____/ |__| |__|
\/ \/
*/
}
console.log(makeMulti(string));