2017-07-28 48 views

回答

3

結賬jsfuck.com。這給出了例子並說明了如何使用它來編寫任何代碼。

基礎知識:

false  => ![] 
true  => !![] 
undefined => [][[]] 
NaN   => +[![]] 
0   => +[] 
1   => +!+[] 
2   => !+[]+!+[] 
10   => [+!+[]]+[+[]] 
Array  => [] 
Number  => +[] 
String  => []+[] 
Boolean  => ![] 
Function => []["filter"] 
eval  => []["filter"]["constructor"](CODE)() 
window  => []["filter"]["constructor"]("return this")() 
+3

[許可證](https://github.com/aemkei/jsfuck/blob/master/LICENSE.txt)_is_相當寬容,所以應該是沒問題。 – LarsW