很喜欢去看一些怪人出的怪题,当然今天出的这还是我以前看过的,再一次遇到还是说说吧。涉及到的知识点还是不错的。
简单记录,学习一下吧。
(function(){ return new Function(String.fromCharCode.apply(this,arguments))();})(97,108,101,114,116,40,49,41);
先看知识点一:
1. String.fromCharCode
- 注意String是大写S哦
- 作用是从一串数字中返回一个字符串
/*简单举例*/console.log(String.fromCharCode(67,97,116)); //Catconsole.log(String.fromCharCode(90,104,97,110,103,121,97,111,99,104,117,110)); //Zhangyaochun |