控制台彩色背景的文字

今天发现一个有趣的打印,在控制台,我就是最靓的文字:

var ms = "\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a \x72\x67\x62\x61\x28\x32\x35\x32\x2c\x32\x33\x34\x2c\x31\x38\x37\x2c\x31\x29\x3b\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a \x2d\x6d\x6f\x7a\x2d\x6c\x69\x6e\x65\x61\x72\x2d\x67\x72\x61\x64\x69\x65\x6e\x74\x28\x6c\x65\x66\x74\x2c \x72\x67\x62\x61\x28\x32\x35\x32\x2c\x32\x33\x34\x2c\x31\x38\x37\x2c\x31\x29 \x30\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x35\x2c\x32\x35\x30\x2c\x37\x37\x2c\x31\x29 \x31\x32\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x34\x37\x2c\x34\x39\x2c\x31\x29 \x32\x38\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x31\x30\x2c\x32\x34\x37\x2c\x31\x29 \x33\x39\x25\x2c\x72\x67\x62\x61\x28\x30\x2c\x31\x38\x39\x2c\x32\x34\x37\x2c\x31\x29 \x35\x31\x25\x2c \x72\x67\x62\x61\x28\x31\x33\x33\x2c\x31\x30\x38\x2c\x32\x31\x37\x2c\x31\x29 \x36\x34\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x37\x2c\x30\x2c\x32\x34\x37\x2c\x31\x29 \x37\x38\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x37\x2c\x30\x2c\x31\x38\x39\x2c\x31\x29 \x38\x37\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x35\x2c\x32\x32\x2c\x35\x32\x2c\x31\x29 \x31\x30\x30\x25\x29\x3b\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a \x2d\x77\x65\x62\x6b\x69\x74\x2d\x67\x72\x61\x64\x69\x65\x6e\x74\x28\x6c\x65\x66\x74 \x74\x6f\x70\x2c \x72\x69\x67\x68\x74 \x74\x6f\x70\x2c \x63\x6f\x6c\x6f\x72\x2d\x73\x74\x6f\x70\x28\x30\x25\x2c \x72\x67\x62\x61\x28\x32\x35\x32\x2c\x32\x33\x34\x2c\x31\x38\x37\x2c\x31\x29\x29\x2c \x63\x6f\x6c\x6f\x72\x2d\x73\x74\x6f\x70\x28\x31\x32\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x35\x2c\x32\x35\x30\x2c\x37\x37\x2c\x31\x29\x29\x2c \x63\x6f\x6c\x6f\x72\x2d\x73\x74\x6f\x70\x28\x32\x38\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x34\x37\x2c\x34\x39\x2c\x31\x29\x29\x2c \x63\x6f\x6c\x6f\x72\x2d\x73\x74\x6f\x70\x28\x33\x39\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x31\x30\x2c\x32\x34\x37\x2c\x31\x29\x29\x2c \x63\x6f\x6c\x6f\x72\x2d\x73\x74\x6f\x70\x28\x35\x31\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x31\x38\x39\x2c\x32\x34\x37\x2c\x31\x29\x29\x2c \x63\x6f\x6c\x6f\x72\x2d\x73\x74\x6f\x70\x28\x36\x34\x25\x2c \x72\x67\x62\x61\x28\x31\x33\x33\x2c\x31\x30\x38\x2c\x32\x31\x37\x2c\x31\x29\x29\x2c \x63\x6f\x6c\x6f\x72\x2d\x73\x74\x6f\x70\x28\x37\x38\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x37\x2c\x30\x2c\x32\x34\x37\x2c\x31\x29\x29\x2c \x63\x6f\x6c\x6f\x72\x2d\x73\x74\x6f\x70\x28\x38\x37\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x37\x2c\x30\x2c\x31\x38\x39\x2c\x31\x29\x29\x2c \x63\x6f\x6c\x6f\x72\x2d\x73\x74\x6f\x70\x28\x31\x30\x30\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x35\x2c\x32\x32\x2c\x35\x32\x2c\x31\x29\x29\x29\x3b\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a \x2d\x77\x65\x62\x6b\x69\x74\x2d\x6c\x69\x6e\x65\x61\x72\x2d\x67\x72\x61\x64\x69\x65\x6e\x74\x28\x6c\x65\x66\x74\x2c \x72\x67\x62\x61\x28\x32\x35\x32\x2c\x32\x33\x34\x2c\x31\x38\x37\x2c\x31\x29 \x30\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x35\x2c\x32\x35\x30\x2c\x37\x37\x2c\x31\x29 \x31\x32\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x34\x37\x2c\x34\x39\x2c\x31\x29 \x32\x38\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x31\x30\x2c\x32\x34\x37\x2c\x31\x29 \x33\x39\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x31\x38\x39\x2c\x32\x34\x37\x2c\x31\x29 \x35\x31\x25\x2c \x72\x67\x62\x61\x28\x31\x33\x33\x2c\x31\x30\x38\x2c\x32\x31\x37\x2c\x31\x29 \x36\x34\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x37\x2c\x30\x2c\x32\x34\x37\x2c\x31\x29 \x37\x38\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x37\x2c\x30\x2c\x31\x38\x39\x2c\x31\x29 \x38\x37\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x35\x2c\x32\x32\x2c\x35\x32\x2c\x31\x29 \x31\x30\x30\x25\x29\x3b\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a \x2d\x6f\x2d\x6c\x69\x6e\x65\x61\x72\x2d\x67\x72\x61\x64\x69\x65\x6e\x74\x28\x6c\x65\x66\x74\x2c \x72\x67\x62\x61\x28\x32\x35\x32\x2c\x32\x33\x34\x2c\x31\x38\x37\x2c\x31\x29 \x30\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x35\x2c\x32\x35\x30\x2c\x37\x37\x2c\x31\x29 \x31\x32\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x34\x37\x2c\x34\x39\x2c\x31\x29 \x32\x38\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x31\x30\x2c\x32\x34\x37\x2c\x31\x29 \x33\x39\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x31\x38\x39\x2c\x32\x34\x37\x2c\x31\x29 \x35\x31\x25\x2c \x72\x67\x62\x61\x28\x31\x33\x33\x2c\x31\x30\x38\x2c\x32\x31\x37\x2c\x31\x29 \x36\x34\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x37\x2c\x30\x2c\x32\x34\x37\x2c\x31\x29 \x37\x38\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x37\x2c\x30\x2c\x31\x38\x39\x2c\x31\x29 \x38\x37\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x35\x2c\x32\x32\x2c\x35\x32\x2c\x31\x29 \x31\x30\x30\x25\x29\x3b\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a \x2d\x6d\x73\x2d\x6c\x69\x6e\x65\x61\x72\x2d\x67\x72\x61\x64\x69\x65\x6e\x74\x28\x6c\x65\x66\x74\x2c \x72\x67\x62\x61\x28\x32\x35\x32\x2c\x32\x33\x34\x2c\x31\x38\x37\x2c\x31\x29 \x30\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x35\x2c\x32\x35\x30\x2c\x37\x37\x2c\x31\x29 \x31\x32\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x34\x37\x2c\x34\x39\x2c\x31\x29 \x32\x38\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x31\x30\x2c\x32\x34\x37\x2c\x31\x29 \x33\x39\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x31\x38\x39\x2c\x32\x34\x37\x2c\x31\x29 \x35\x31\x25\x2c \x72\x67\x62\x61\x28\x31\x33\x33\x2c\x31\x30\x38\x2c\x32\x31\x37\x2c\x31\x29 \x36\x34\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x37\x2c\x30\x2c\x32\x34\x37\x2c\x31\x29 \x37\x38\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x37\x2c\x30\x2c\x31\x38\x39\x2c\x31\x29 \x38\x37\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x35\x2c\x32\x32\x2c\x35\x32\x2c\x31\x29 \x31\x30\x30\x25\x29\x3b\x62\x61\x63\x6b\x67\x72\x6f\x75\x6e\x64\x3a \x6c\x69\x6e\x65\x61\x72\x2d\x67\x72\x61\x64\x69\x65\x6e\x74\x28\x74\x6f \x72\x69\x67\x68\x74\x2c \x72\x67\x62\x61\x28\x32\x35\x32\x2c\x32\x33\x34\x2c\x31\x38\x37\x2c\x31\x29 \x30\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x35\x2c\x32\x35\x30\x2c\x37\x37\x2c\x31\x29 \x31\x32\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x34\x37\x2c\x34\x39\x2c\x31\x29 \x32\x38\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x32\x31\x30\x2c\x32\x34\x37\x2c\x31\x29 \x33\x39\x25\x2c \x72\x67\x62\x61\x28\x30\x2c\x31\x38\x39\x2c\x32\x34\x37\x2c\x31\x29 \x35\x31\x25\x2c \x72\x67\x62\x61\x28\x31\x33\x33\x2c\x31\x30\x38\x2c\x32\x31\x37\x2c\x31\x29 \x36\x34\x25\x2c \x72\x67\x62\x61\x28\x31\x37\x37\x2c\x30\x2c\x32\x34\x37\x2c\x31\x29 \x37\x38\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x37\x2c\x30\x2c\x31\x38\x39\x2c\x31\x29 \x38\x37\x25\x2c \x72\x67\x62\x61\x28\x32\x34\x35\x2c\x32\x32\x2c\x35\x32\x2c\x31\x29 \x31\x30\x30\x25\x29\x3b\x66\x69\x6c\x74\x65\x72\x3a \x70\x72\x6f\x67\x69\x64\x3a\x44\x58\x49\x6d\x61\x67\x65\x54\x72\x61\x6e\x73\x66\x6f\x72\x6d\x2e\x4d\x69\x63\x72\x6f\x73\x6f\x66\x74\x2e\x67\x72\x61\x64\x69\x65\x6e\x74\x28 \x73\x74\x61\x72\x74\x43\x6f\x6c\x6f\x72\x73\x74\x72\x3d\x27\x23\x66\x63\x65\x61\x62\x62\x27\x2c \x65\x6e\x64\x43\x6f\x6c\x6f\x72\x73\x74\x72\x3d\x27\x23\x66\x35\x31\x36\x33\x34\x27\x2c \x47\x72\x61\x64\x69\x65\x6e\x74\x54\x79\x70\x65\x3d\x31 \x29\x3b\x66\x6f\x6e\x74\x2d\x73\x69\x7a\x65\x3a\x31\x2e\x35\x65\x6d";
 
console.log("%c%s",ms,'我是彩虹背景的文字,踏着七彩祥云来见你啦');

然后你看到的效果就是这样的:

是不是挺好玩的?赶快收藏起来吧!~~

关注我,给我点赞,带你冲上前端云霄,遨游前端的天际。感谢阅读!

保护您的js代码; 演示代码: function Save_View() { var idx =document.getElementById("idx");//项目ID var xmmc =document.getElementById("xmmc");//项目名称 var szqy =document.getElementById("szqy");//所在区域 var kfsmc =document.getElementById("kfsmc");//开发商名称 var xxdz =document.getElementById("xxdz");//详细地址 var zjzmj =document.getElementById("zjzmj");//总建筑面积 if(xmmc.value=="") { alert("请填写项目名称"); xmmc.focus(); return false; } if(kfsmc.value=="") { alert("请填写开发商名称"); kfsmc.focus(); return false; } if(xxdz.value=="") { alert("请填写详细地址"); xxdz.focus(); return false; } if(zjzmj.value=="") { alert("请填写总建筑面积"); zjzmj.focus(); return false; } } 加密后代码: function Save_View() { var Jy_eNph1 =window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64"]("\x69\x64\x78");//项目ID var E2 =window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64"]("\x78\x6d\x6d\x63");//项目名称 var gEXwty3 =window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64"]("\x73\x7a\x71\x79");//所在区域 var jH4 =window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64"]("\x6b\x66\x73\x6d\x63");//开发商名称 var bbSRLoGP5 =window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64"]("\x78\x78\x64\x7a");//详细地址 var dY_boQtws6 =window["\x64\x6f\x63\x75\x6d\x65\x6e\x74"]["\x67\x65\x74\x45\x6c\x65\x6d\x65\x6e\x74\x42\x79\x49\x64"]("\x7a\x6a\x7a\x6d\x6a");//总建筑面积 if(E2["\x76\x61\x6c\x75\x65"]=="") { window["\x61\x6c\x65\x72\x74"]("\u8bf7\u586b\u5199\u9879\u76ee\u540d\u79f0"); E2["\x66\x6f\x63\x75\x73"](); return false; } if(jH4["\x76\x61\x6c\x75\x65"]=="") { window["\x61\x6c\x65\x72\x74"]("\u8bf7\u586b\u5199\u5f00\u53d1\u5546\u540d\u79f0"); jH4["\x66\x6f\x63\x75\x73"](); return false; } if(bbSRLoGP5["\x76\x61\x6c\x75\x65"]=="") { window["\x61\x6c\x65\x72\x74"]("\u8bf7\u586b\u5199\u8be6\u7ec6\u5730\u5740"); bbSRLoGP5["\x66\x6f\x63\x75\x73"](); return false; } if(dY_boQtws6["\x76\x61\x6c\x75\x65"]=="") { window["\x61\x6c\x65\x72\x74"]("\u8bf7\u586b\u5199\u603b\u5efa\u7b51\u9762\u79ef"); dY_boQtws6["\x66\x6f\x63\x75\x73"](); return false; } } 变量完全是随机的,很好很实用。 喜欢就下载喽··~~
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值